From 4855392111478d93860e2ffd37d475443e61ffb4 Mon Sep 17 00:00:00 2001 From: Phosra Date: Sat, 23 Jul 2022 21:22:43 -0700 Subject: [PATCH] Remove `mut` --- library/std/src/io/stdio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/io/stdio.rs b/library/std/src/io/stdio.rs index e3b62894d0f22..4d3736f79146c 100644 --- a/library/std/src/io/stdio.rs +++ b/library/std/src/io/stdio.rs @@ -220,7 +220,7 @@ fn handle_ebadf(r: io::Result, default: T) -> io::Result { /// /// 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(()) /// }