about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/base.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-09 08:19:19 +0000
committerbors <bors@rust-lang.org>2021-08-09 08:19:19 +0000
commiteaf6f463599df1f18da94a6965e216ea15795417 (patch)
tree8158c7d5411dcbfaa4f853727129ac35c5a769fa /compiler/rustc_codegen_gcc/src/base.rs
parent7b52ad00cb492f65855014b2aab9f2abe9be3324 (diff)
parent4763ef2bd3b785eab2198348035289f05ffd9548 (diff)
downloadrust-eaf6f463599df1f18da94a6965e216ea15795417.tar.gz
rust-eaf6f463599df1f18da94a6965e216ea15795417.zip
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)
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/base.rs')
0 files changed, 0 insertions, 0 deletions