Skip to content

Commit 3673978

Browse files
committed
Fix doc sample for Cursor
Fixes #29219
1 parent 5692e16 commit 3673978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/io/cursor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ use slice;
6969
/// use std::io::Cursor;
7070
/// let mut buff = Cursor::new(vec![0; 15]);
7171
///
72-
/// write_ten_bytes(&mut buff).unwrap();
72+
/// write_ten_bytes_at_end(&mut buff).unwrap();
7373
///
7474
/// assert_eq!(&buff.get_ref()[5..15], &[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
7575
/// }

0 commit comments

Comments
 (0)