From cdc18b96d6aa38c22b4fa9715c974ef986ad250d Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Fri, 28 Feb 2014 00:02:27 +0200 Subject: Remove Rc's borrow method to avoid conflicts with RefCell's borrow in Rc>. --- src/doc/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/doc/tutorial.md') diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index 8f37aecfc34..15fd21e9fbc 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -1687,7 +1687,7 @@ let x = Rc::new([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); let y = x.clone(); // a new owner let z = x; // this moves `x` into `z`, rather than creating a new owner -assert!(*z.borrow() == [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); +assert!(*z == [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); // 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]); -- cgit 1.4.1-3-g733a5