Skip to content

Commit

Permalink
Follow C-RW-VALUE in std::io::Cursor example
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfbacon committed Jun 29, 2022
1 parent 8308806 commit 39eb148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/io/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use crate::io::{self, ErrorKind, IoSlice, IoSliceMut, ReadBuf, SeekFrom};
/// use std::fs::File;
///
/// // a library function we've written
/// 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<()> {
/// writer.seek(SeekFrom::End(-10))?;
///
/// for i in 0..10 {
Expand Down

0 comments on commit 39eb148

Please sign in to comment.