diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-01-04 12:13:49 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-01-04 14:44:14 -0800 |
| commit | 01af682c648b3f8f801df29579188ac5fd7c06e3 (patch) | |
| tree | 45114a49724bcea2cb1b697edf943ef0353e09c8 /doc/tutorial.md | |
| parent | ec69dea6f7eed9854504dd83aa136900d48fafef (diff) | |
| download | rust-01af682c648b3f8f801df29579188ac5fd7c06e3.tar.gz rust-01af682c648b3f8f801df29579188ac5fd7c06e3.zip | |
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.
Diffstat (limited to 'doc/tutorial.md')
| -rw-r--r-- | doc/tutorial.md | 2 |
1 files changed, 1 insertions, 1 deletions
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], |
