From 01af682c648b3f8f801df29579188ac5fd7c06e3 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 4 Jan 2014 12:13:49 -0800 Subject: [PATCH] doc: Fix an inexplicable error in a tutorial example This code was wrong but apparently worked before removing struct deref. I don't know why. --- doc/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index ffef6d7f91f..0eb228d8205 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -2595,7 +2595,7 @@ the `priv` keyword: mod farm { # pub type Chicken = int; # struct Human(int); -# impl Human { fn rest(&self) { } } +# impl Human { pub fn rest(&self) { } } # pub fn make_me_a_farm() -> Farm { Farm { chickens: ~[], farmer: Human(0) } } pub struct Farm { priv chickens: ~[Chicken],