mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
eaf6f46359
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)