Skip to content

Commit 21c9d08

Browse files
committed
tutorial: Fix broken examples
1 parent f26df46 commit 21c9d08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ parentheses, while their bodies *must* be wrapped in
189189
braces. Single-statement, unbraced bodies are not allowed.
190190

191191
~~~~
192-
# mod universe { fn recalibrate() -> bool { true } }
192+
# mod universe { pub fn recalibrate() -> bool { true } }
193193
fn main() {
194194
/* A simple loop */
195195
loop {
@@ -210,7 +210,7 @@ let hi = "hi";
210210
let mut count = 0;
211211
212212
while count < 10 {
213-
io::println(fmt!("count: %?", i));
213+
io::println(fmt!("count: %?", count));
214214
count += 1;
215215
}
216216
~~~~

0 commit comments

Comments
 (0)