Skip to content

Commit

Permalink
Fix typos in code examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Jun 17, 2021
1 parent fd14c52 commit 5e7a8c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/io/mod.rs
Expand Up @@ -1059,7 +1059,7 @@ impl<'a> IoSliceMut<'a> {
/// let mut data = [1; 8];
/// let mut buf = IoSliceMut::new(&mut data);
///
/// // Mark 10 bytes as read.
/// // Mark 3 bytes as read.
/// buf.advance(3);
/// assert_eq!(buf.deref(), [1; 5].as_ref());
/// ```
Expand Down Expand Up @@ -1193,7 +1193,7 @@ impl<'a> IoSlice<'a> {
/// let mut data = [1; 8];
/// let mut buf = IoSlice::new(&mut data);
///
/// // Mark 10 bytes as read.
/// // Mark 3 bytes as read.
/// buf.advance(3);
/// assert_eq!(buf.deref(), [1; 5].as_ref());
/// ```
Expand Down

0 comments on commit 5e7a8c6

Please sign in to comment.