Indentation and error message fixes

These commits fix 2 issues:

* One of the compiler error messages does not correspond to the example code that supposedly generated it.
* Several rust code examples mix 2 and 4 space indentation styles.