Skip to content

Commit

Permalink
Merge pull request #4272 from ejholmes/crates-minimal-example
Browse files Browse the repository at this point in the history
Fix example in 13.3.
  • Loading branch information
catamorphism committed Dec 23, 2012
2 parents 84671e5 + 889e560 commit 50bb838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/tutorial.md
Original file line number Diff line number Diff line change
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 50bb838

Please sign in to comment.