We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f13a541 + 39eb148 commit d0cf0fdCopy full SHA for d0cf0fd
library/std/src/io/cursor.rs
@@ -34,7 +34,7 @@ use crate::io::{self, BorrowedCursor, ErrorKind, IoSlice, IoSliceMut, SeekFrom};
34
/// use std::fs::File;
35
///
36
/// // a library function we've written
37
-/// fn write_ten_bytes_at_end<W: Write + Seek>(writer: &mut W) -> io::Result<()> {
+/// fn write_ten_bytes_at_end<W: Write + Seek>(mut writer: W) -> io::Result<()> {
38
/// writer.seek(SeekFrom::End(-10))?;
39
40
/// for i in 0..10 {
0 commit comments