Skip to content

Commit 98f1c35

Browse files
Clarified that let(mut x, y) = only makes x mutable, not y
1 parent 9743c66 commit 98f1c35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/book/mutability.md

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ fn foo(mut x: i32) {
5555
# }
5656
```
5757

58+
Note that here, the `x` is mutable, but not the `y`.
59+
5860
[pattern]: patterns.html
5961

6062
# Interior vs. Exterior Mutability

0 commit comments

Comments
 (0)