Skip to content

Commit

Permalink
Auto merge of #34717 - frewsxcv:sink, r=apasel422
Browse files Browse the repository at this point in the history
Remove unnecessarily mutable reference in doc example.

None
  • Loading branch information
bors authored Jul 9, 2016
2 parents 7323ac4 + fc2123a commit d40c593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/io/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ pub struct Sink { _priv: () }
/// ```rust
/// use std::io::{self, Write};
///
/// let mut buffer = vec![1, 2, 3, 5, 8];
/// let num_bytes = io::sink().write(&mut buffer).unwrap();
/// let buffer = vec![1, 2, 3, 5, 8];
/// let num_bytes = io::sink().write(&buffer).unwrap();
/// assert_eq!(num_bytes, 5);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
Expand Down

0 comments on commit d40c593

Please sign in to comment.