Skip to content

Commit

Permalink
Rollup merge of #99657 - Phosra:patch-1, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Docs - remove unnecessary `mut` that gives a warning

Fixes #99654.

A trivial linting fix for a Stdio example.

`@rustbot` label +T-lib
  • Loading branch information
RalfJung authored Jul 24, 2022
2 parents 890cd7a + 4855392 commit 51b3d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/io/stdio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
/// }
Expand Down

0 comments on commit 51b3d51

Please sign in to comment.