diff options
| author | Matt Fellenz <matt@felle.nz> | 2022-06-28 17:01:37 -0700 |
|---|---|---|
| committer | Matt Fellenz <matt@felle.nz> | 2022-06-28 17:01:37 -0700 |
| commit | 39eb1482318ffd59461a88e27625a4cdcc9a5f47 (patch) | |
| tree | ed1d3d272414ba91d1a93bcb0e71af30daa698ff /library/std/src | |
| parent | 830880640304ba8699c5f9a0c4665c38a3271963 (diff) | |
| download | rust-39eb1482318ffd59461a88e27625a4cdcc9a5f47.tar.gz rust-39eb1482318ffd59461a88e27625a4cdcc9a5f47.zip | |
Follow C-RW-VALUE in std::io::Cursor example
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/io/cursor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/io/cursor.rs b/library/std/src/io/cursor.rs index f3fbfc44789..570c2a5f0cd 100644 --- a/library/std/src/io/cursor.rs +++ b/library/std/src/io/cursor.rs @@ -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 { |
