We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c508e1 + 151a8d8 commit fb4f8eeCopy full SHA for fb4f8ee
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