diff options
| author | Phosra <phosra@tutanota.com> | 2022-07-23 21:22:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-23 21:22:43 -0700 |
| commit | 4855392111478d93860e2ffd37d475443e61ffb4 (patch) | |
| tree | 014e35660f51fbd352c0c13e7495fb511a5b898e /library/std/src/io/stdio.rs | |
| parent | db8086eb6056f022d3bb719f777307e9daa3f8d8 (diff) | |
| download | rust-4855392111478d93860e2ffd37d475443e61ffb4.tar.gz rust-4855392111478d93860e2ffd37d475443e61ffb4.zip | |
Remove `mut`
Diffstat (limited to 'library/std/src/io/stdio.rs')
| -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(()) /// } |
