]> git.lizzy.rs Git - rust.git/commit
Auto merge of #87820 - elichai:patch-2, r=kennytm
authorbors <bors@rust-lang.org>
Mon, 9 Aug 2021 08:19:19 +0000 (08:19 +0000)
committerbors <bors@rust-lang.org>
Mon, 9 Aug 2021 08:19:19 +0000 (08:19 +0000)
commiteaf6f463599df1f18da94a6965e216ea15795417
tree8158c7d5411dcbfaa4f853727129ac35c5a769fa
parent7b52ad00cb492f65855014b2aab9f2abe9be3324
parent4763ef2bd3b785eab2198348035289f05ffd9548
Auto merge of #87820 - elichai:patch-2, r=kennytm

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)