Rust println! problem - weird behavior inside the println macro [duplicate]
问题 This question already has answers here : Why does my string not match when reading user input from stdin? (3 answers) Closed 1 year ago . I am currently working on a simple "user input" program. The user can enter a number, which I get with std::io::stdin().read_line(&mut let_name_here).ok().expect("Error"); . After getting the user input I want to print it to the console for a review. I have noticed strange behavior within the println! macro. The following code println!("Your input: {}", let