about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-07-24 14:04:27 -0400
committerGitHub <noreply@github.com>2022-07-24 14:04:27 -0400
commit51b3d51cf47be5d1de040ada17675f71b10f54b5 (patch)
tree340232c0554c8b6299a7e717f121ae1bacb06b64 /library/std/src
parent890cd7a496b8002debead4b970bd2f24dcb9c014 (diff)
parent4855392111478d93860e2ffd37d475443e61ffb4 (diff)
downloadrust-51b3d51cf47be5d1de040ada17675f71b10f54b5.tar.gz
rust-51b3d51cf47be5d1de040ada17675f71b10f54b5.zip
Rollup merge of #99657 - Phosra:patch-1, r=Dylan-DPC
Docs - remove unnecessary `mut` that gives a warning

Fixes #99654.

A trivial linting fix for a Stdio example.

`@rustbot` label +T-lib
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/io/stdio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/io/stdio.rs b/library/std/src/io/stdio.rs
index e3b62894d0f..4d3736f7914 100644
--- a/library/std/src/io/stdio.rs
+++ b/library/std/src/io/stdio.rs
@@ -220,7 +220,7 @@ fn handle_ebadf<T>(r: io::Result<T>, default: T) -> io::Result<T> {
 ///
 /// fn main() -> io::Result<()> {
 ///     let mut buffer = String::new();
-///     let mut stdin = io::stdin(); // We get `Stdin` here.
+///     let stdin = io::stdin(); // We get `Stdin` here.
 ///     stdin.read_line(&mut buffer)?;
 ///     Ok(())
 /// }