There was an error while loading. Please reload this page.
1 parent ec69dea commit 01af682Copy full SHA for 01af682
1 file changed
doc/tutorial.md
@@ -2595,7 +2595,7 @@ the `priv` keyword:
2595
mod farm {
2596
# pub type Chicken = int;
2597
# struct Human(int);
2598
-# impl Human { fn rest(&self) { } }
+# impl Human { pub fn rest(&self) { } }
2599
# pub fn make_me_a_farm() -> Farm { Farm { chickens: ~[], farmer: Human(0) } }
2600
pub struct Farm {
2601
priv chickens: ~[Chicken],
0 commit comments