mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Fix example.
This commit is contained in:
parent
40a3e20bbb
commit
8223a1278d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user