diff options
| author | Ralf Jung <post@ralfj.de> | 2022-07-24 14:04:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-24 14:04:27 -0400 |
| commit | 51b3d51cf47be5d1de040ada17675f71b10f54b5 (patch) | |
| tree | 340232c0554c8b6299a7e717f121ae1bacb06b64 /library/std/src | |
| parent | 890cd7a496b8002debead4b970bd2f24dcb9c014 (diff) | |
| parent | 4855392111478d93860e2ffd37d475443e61ffb4 (diff) | |
| download | rust-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.rs | 2 |
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(()) /// } |
