Skip to content

Commit

Permalink
Fix example.
Browse files Browse the repository at this point in the history
  • Loading branch information
ejholmes authored and catamorphism committed Dec 25, 2012
1 parent 40a3e20 commit 8223a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/tutorial.md
Expand Up @@ -2419,10 +2419,10 @@ these two files:
pub fn explore() -> &str { "world" }
~~~~

~~~~ {.xfail-test}
~~~~
// main.rs
extern mod world;
fn main() { io::println("hello " + world::explore()); }
fn main() { io::println(~"hello " + world::explore()); }
~~~~

Now compile and run like this (adjust to your platform if necessary):
Expand Down

0 comments on commit 8223a12

Please sign in to comment.