about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-11-22 07:03:11 -0500
committerDaniel Micay <danielmicay@gmail.com>2013-11-22 07:03:11 -0500
commit7d9fd623001a8feb1c682e9fd03fdcc85a2d64f3 (patch)
tree728b7aa1191ac5b3d9542fa98a8d241dfb6a36b4
parentd97ce15c14f4298cae65e63f6b1b516bb346b066 (diff)
downloadrust-7d9fd623001a8feb1c682e9fd03fdcc85a2d64f3.tar.gz
rust-7d9fd623001a8feb1c682e9fd03fdcc85a2d64f3.zip
minor rewording in the tutorial's `Rc` coverage
-rw-r--r--doc/tutorial.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 2a493bb468f..5d64dd14c77 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -1320,7 +1320,8 @@ let z = x; // this moves `x` into `z`, rather than creating a new owner
 
 assert_eq!(*z.borrow(), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
 
-let mut a = Rc::new([10, 9, 8, 7, 6, 5, 4, 3, 2, 1]); // the variable is mutable, but not the box
+// the variable is mutable, but not the contents of the box
+let mut a = Rc::new([10, 9, 8, 7, 6, 5, 4, 3, 2, 1]);
 a = z;
 ~~~