Clarified that let(mut x, y) =
only makes x mutable, not y
This commit is contained in:
parent
9743c661b0
commit
98f1c35c77
@ -55,6 +55,8 @@ fn foo(mut x: i32) {
|
||||
# }
|
||||
```
|
||||
|
||||
Note that here, the `x` is mutable, but not the `y`.
|
||||
|
||||
[pattern]: patterns.html
|
||||
|
||||
# Interior vs. Exterior Mutability
|
||||
|
Loading…
x
Reference in New Issue
Block a user