tutorial: Fix broken examples

This commit is contained in:
Brian Anderson 2012-12-20 16:32:28 -08:00
parent f26df46a12
commit 21c9d0858b

View File

@ -189,7 +189,7 @@ parentheses, while their bodies *must* be wrapped in
braces. Single-statement, unbraced bodies are not allowed.
~~~~
# mod universe { fn recalibrate() -> bool { true } }
# mod universe { pub fn recalibrate() -> bool { true } }
fn main() {
/* A simple loop */
loop {
@ -210,7 +210,7 @@ let hi = "hi";
let mut count = 0;
while count < 10 {
io::println(fmt!("count: %?", i));
io::println(fmt!("count: %?", count));
count += 1;
}
~~~~