mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Merge pull request #4272 from ejholmes/crates-minimal-example
Fix example in 13.3.
This commit is contained in:
commit
50bb838389
@ -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