We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c0cab7 + d6f8271 commit 00a32f2Copy full SHA for 00a32f2
src/doc/guide.md
@@ -737,10 +737,10 @@ let x = (let y = 5i); // found `let` in ident position
737
The compiler is telling us here that it was expecting to see the beginning of
738
an expression, and a `let` can only begin a statement, not an expression.
739
740
-However, re-assigning to a mutable binding is an expression:
+However, assigning to a variable binding is an expression:
741
742
```{rust}
743
-let mut x = 0i;
+let x;
744
let y = x = 5i;
745
```
746
0 commit comments