From 98f1c35c77835395d12c72d5d5712fc1686cc3b4 Mon Sep 17 00:00:00 2001 From: mark-summerfield Date: Wed, 18 May 2016 17:43:22 +0100 Subject: [PATCH] Clarified that `let(mut x, y) =` only makes x mutable, not y --- src/doc/book/mutability.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/doc/book/mutability.md b/src/doc/book/mutability.md index 6aad3c5f74655..e462715114624 100644 --- a/src/doc/book/mutability.md +++ b/src/doc/book/mutability.md @@ -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