Skip to content

Commit 39eb148

Browse files
committed
Follow C-RW-VALUE in std::io::Cursor example
1 parent 8308806 commit 39eb148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/io/cursor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use crate::io::{self, ErrorKind, IoSlice, IoSliceMut, ReadBuf, SeekFrom};
3434
/// use std::fs::File;
3535
///
3636
/// // a library function we've written
37-
/// fn write_ten_bytes_at_end<W: Write + Seek>(writer: &mut W) -> io::Result<()> {
37+
/// fn write_ten_bytes_at_end<W: Write + Seek>(mut writer: W) -> io::Result<()> {
3838
/// writer.seek(SeekFrom::End(-10))?;
3939
///
4040
/// for i in 0..10 {

0 commit comments

Comments
 (0)