Fix typos in code examples.
This commit is contained in:
parent
fd14c52075
commit
5e7a8c6eb1
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
/// ```
|
||||
|
@ -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());
|
||||
/// ```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue