Skip to content

Commit

Permalink
Rollup merge of rust-lang#33720 - mark-summerfield:patch-1, r=stevekl…
Browse files Browse the repository at this point in the history
…abnik

Clarified that `let(mut x, y) =` only makes x mutable, not y

Closes rust-lang#33716
  • Loading branch information
Manishearth committed May 19, 2016
2 parents 8b4b3a8 + 98f1c35 commit f6f5cdf
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 f6f5cdf

Please sign in to comment.