mirror of https://github.com/lukechilds/trim.git
Luke Childs
8 years ago
1 changed files with 7 additions and 1 deletions
@ -1,3 +1,9 @@ |
|||
use std::io; |
|||
use std::io::prelude::*; |
|||
|
|||
fn main() { |
|||
println!("Hello, world!"); |
|||
let stdin = io::stdin(); |
|||
for line in stdin.lock().lines() { |
|||
println!("{}", line.unwrap()); |
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue