Skip to content

Commit 01af682

Browse files
committed
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.
1 parent ec69dea commit 01af682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2595,7 +2595,7 @@ the `priv` keyword:
25952595
mod farm {
25962596
# pub type Chicken = int;
25972597
# struct Human(int);
2598-
# impl Human { fn rest(&self) { } }
2598+
# impl Human { pub fn rest(&self) { } }
25992599
# pub fn make_me_a_farm() -> Farm { Farm { chickens: ~[], farmer: Human(0) } }
26002600
pub struct Farm {
26012601
priv chickens: ~[Chicken],

0 commit comments

Comments
 (0)