// Run with `rust run hello.rs`

fn greeter(greeting_text: &str) {
    println(fmt!("Hello %s!", greeting_text));
}

fn main() {
    greeter("World");
}

// compile with `rustc hello.rs`
// run with `./hello`

fn greeter(greeting_text: &str) {
    println!("Hello {}!", greeting_text);
}

fn main() {
    greeter("World");
}

Make Rust example work in post-rust-1.0 world
Make Rust example work in post-rust-1.0 world