Skip to content

Commit

Permalink
Fix doc sample for Cursor
Browse files Browse the repository at this point in the history
Fixes #29219
  • Loading branch information
wesleywiser committed Oct 22, 2015
1 parent 5692e16 commit 3673978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/io/cursor.rs
Expand Up @@ -69,7 +69,7 @@ use slice;
/// use std::io::Cursor;
/// let mut buff = Cursor::new(vec![0; 15]);
///
/// write_ten_bytes(&mut buff).unwrap();
/// write_ten_bytes_at_end(&mut buff).unwrap();
///
/// assert_eq!(&buff.get_ref()[5..15], &[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
/// }
Expand Down

0 comments on commit 3673978

Please sign in to comment.