Skip to content

Commit f6f5cdf

Browse files
committed
Rollup merge of #33720 - mark-summerfield:patch-1, r=steveklabnik
Clarified that `let(mut x, y) =` only makes x mutable, not y Closes #33716
2 parents 8b4b3a8 + 98f1c35 commit f6f5cdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/book/mutability.md

Lines changed: 2 additions & 0 deletions
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)