Fix doc sample for Cursor

Fixes #29219
This commit is contained in:
Wesley Wiser 2015-10-21 22:33:24 -04:00
parent 5692e16270
commit 3673978539

View File

@ -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]);
/// }