Skip to content

Commit

Permalink
Clarified that let(mut x, y) = only makes x mutable, not y
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-summerfield committed May 18, 2016
1 parent 9743c66 commit 98f1c35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/doc/book/mutability.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98f1c35

Please sign in to comment.