Skip to content

Commit 51b3d51

Browse files
authored
Rollup merge of rust-lang#99657 - Phosra:patch-1, r=Dylan-DPC
Docs - remove unnecessary `mut` that gives a warning Fixes rust-lang#99654. A trivial linting fix for a Stdio example. `@rustbot` label +T-lib
2 parents 890cd7a + 4855392 commit 51b3d51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/std/src/io/stdio.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ fn handle_ebadf<T>(r: io::Result<T>, default: T) -> io::Result<T> {
220220
///
221221
/// fn main() -> io::Result<()> {
222222
/// let mut buffer = String::new();
223-
/// let mut stdin = io::stdin(); // We get `Stdin` here.
223+
/// let stdin = io::stdin(); // We get `Stdin` here.
224224
/// stdin.read_line(&mut buffer)?;
225225
/// Ok(())
226226
/// }

0 commit comments

Comments
 (0)