Skip to content

Commit d0cf0fd

Browse files
authored
Rollup merge of rust-lang#98651 - mattfbacon:master, r=ChrisDenton
Follow C-RW-VALUE in std::io::Cursor example rustc-dev-guide says to do this: r? `@steveklabnik`
2 parents f13a541 + 39eb148 commit d0cf0fd

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, BorrowedCursor, ErrorKind, IoSlice, IoSliceMut, 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)