We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2d39300 + 026be9d commit c26a8bbCopy full SHA for c26a8bb
library/std/src/io/stdio.rs
@@ -251,8 +251,8 @@ pub struct Stdin {
251
/// let mut buffer = String::new();
252
/// let stdin = io::stdin(); // We get `Stdin` here.
253
/// {
254
-/// let mut stdin_lock = stdin.lock(); // We get `StdinLock` here.
255
-/// stdin_lock.read_to_string(&mut buffer)?;
+/// let mut handle = stdin.lock(); // We get `StdinLock` here.
+/// handle.read_to_string(&mut buffer)?;
256
/// } // `StdinLock` is dropped here.
257
/// Ok(())
258
/// }
0 commit comments