Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::io::{self, Read};
- fn main() {
- let input = get_input();
- println!("Input: {}", input);
- }
- fn get_input() -> String {
- let mut buf = String::new();
- io::stdin()
- .read_line(&mut buf)
- .expect("ya done screwed up!");
- buf
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement