summaryrefslogtreecommitdiff
path: root/rust/hello.rs
blob: 851beed80d16a6b921c41b7cb7cb840e48a80553 (plain)
1
2
3
4
5
6
use std::io;
fn main() {
    let mut name = String::from("World");
    io::stdin().read_line(&mut name).ok();
    println!("Hello, {}", name);
}