Skip to content

Commit

Permalink
Improved example in the Guide
Browse files Browse the repository at this point in the history
Fixes #15452
  • Loading branch information
aochagavia committed Jul 5, 2014
1 parent e0d3cf6 commit d6f8271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/guide.md
Expand Up @@ -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 binding is an expression:

```{rust}
let mut x = 0i;
let x;
let y = x = 5i;
```

Expand Down

5 comments on commit d6f8271

@bors
Copy link
Contributor

@bors bors commented on d6f8271 Jul 6, 2014

Choose a reason for hiding this comment

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

@bors
Copy link
Contributor

@bors bors commented on d6f8271 Jul 6, 2014

Choose a reason for hiding this comment

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

merging aochagavia/rust/guide = d6f8271 into auto

@bors
Copy link
Contributor

@bors bors commented on d6f8271 Jul 6, 2014

Choose a reason for hiding this comment

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

aochagavia/rust/guide = d6f8271 merged ok, testing candidate = 00a32f2

@bors
Copy link
Contributor

@bors bors commented on d6f8271 Jul 6, 2014

Choose a reason for hiding this comment

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

fast-forwarding master to auto = 00a32f2

Please sign in to comment.