Skip to content

Improved example in the Guide #15456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Improved example in the Guide #15456

wants to merge 1 commit into from

Conversation

aochagavia
Copy link
Contributor

Fixes #15452

@@ -737,10 +737,10 @@ let x = (let y = 5i); // found `let` in ident position
The compiler is telling us here that it was expecting to see the beginning of
an expression, and a `let` can only begin a statement, not an expression.

However, re-assigning to a mutable binding is an expression:
However, assigning to a variable is an expression:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been saying 'a variable binding' throughout this section, would you mind adding that last word to stay consistent?

@aochagavia
Copy link
Contributor Author

Done 😉 !

@steveklabnik
Copy link
Member

Looks great!

bors added a commit that referenced this pull request Jul 6, 2014
@bors bors closed this Jul 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code example in the Guide could be improved
3 participants