about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAmy Unger <amy.e.unger@gmail.com>2014-08-19 15:41:12 -0500
committerAmy Unger <amy.e.unger@gmail.com>2014-08-19 15:41:12 -0500
commit0493fb2cfc762b1bd4efcc6a48173dc2721ff1b1 (patch)
treef472560bc852e7ffa1ed17bb59761f6ab567c67f
parent3f5d0b5b6cd4994c719d57a778697124348a4c1c (diff)
Make variable mutable to allow mutable reference
-rw-r--r--src/doc/guide-pointers.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide-pointers.md b/src/doc/guide-pointers.md
index a4d081c5fdc..b196997b399 100644
--- a/src/doc/guide-pointers.md
+++ b/src/doc/guide-pointers.md
@@ -332,7 +332,7 @@ let z = &x;
 Mutable ones, however, are not:
 
 ```{rust,ignore}
-let x = 5i;
+let mut x = 5i;
 let y = &mut x;
 let z = &mut x; // error: cannot borrow `x` as mutable more than once at a time
 ```