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],