Skip to content

Commit d6f8271

Browse files
committed
Improved example in the Guide
Fixes #15452
1 parent e0d3cf6 commit d6f8271

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)