Skip to content

Commit 00a32f2

Browse files
committed
auto merge of #15456 : aochagavia/rust/guide, r=alexcrichton
Fixes #15452
2 parents 4c0cab7 + d6f8271 commit 00a32f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,10 +737,10 @@ let x = (let y = 5i); // found `let` in ident position
737737
The compiler is telling us here that it was expecting to see the beginning of
738738
an expression, and a `let` can only begin a statement, not an expression.
739739

740-
However, re-assigning to a mutable binding is an expression:
740+
However, assigning to a variable binding is an expression:
741741

742742
```{rust}
743-
let mut x = 0i;
743+
let x;
744744
let y = x = 5i;
745745
```
746746

0 commit comments

Comments
 (0)