diff --git a/src/doc/guide-pointers.md b/src/doc/guide-pointers.md index a4d081c5fdc73..b196997b399c4 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 ```