We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8308806 commit 39eb148Copy full SHA for 39eb148
library/std/src/io/cursor.rs
@@ -34,7 +34,7 @@ use crate::io::{self, ErrorKind, IoSlice, IoSliceMut, ReadBuf, 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