From 0493fb2cfc762b1bd4efcc6a48173dc2721ff1b1 Mon Sep 17 00:00:00 2001 From: Amy Unger Date: Tue, 19 Aug 2014 15:41:12 -0500 Subject: [PATCH] Make variable mutable to allow mutable reference --- src/doc/guide-pointers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ```