mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-19 00:16:58 +00:00
Replace read_to_string with read_line in Stdin example The current example results in infinitely reading from stdin, which can confuse newcomers trying to read from stdin. (`@razmag` encountered this while learning the language from the docs)