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
This commit is contained in:
commit
51b3d51cf4
1 changed files with 1 additions and 1 deletions
|
@ -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(())
|
||||
/// }
|
||||
|
|
Loading…
Add table
Reference in a new issue