mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
Remove mut
This commit is contained in:
parent
db8086eb60
commit
4855392111
@ -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…
Reference in New Issue
Block a user