diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-03-27 08:46:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-27 08:46:51 +0200 |
| commit | fe0b0428b89802f02a050eab72373b75709d0bce (patch) | |
| tree | a103989ed5edd46493139c81af4c97415a0d2d4a /library | |
| parent | 102bbbd940028e78db7f67b1affe116ab08ed154 (diff) | |
| parent | 39eb1482318ffd59461a88e27625a4cdcc9a5f47 (diff) | |
| download | rust-fe0b0428b89802f02a050eab72373b75709d0bce.tar.gz rust-fe0b0428b89802f02a050eab72373b75709d0bce.zip | |
Rollup merge of #98651 - mattfbacon:master, r=ChrisDenton
Follow C-RW-VALUE in std::io::Cursor example rustc-dev-guide says to do this: r? ``@steveklabnik``
Diffstat (limited to 'library')
| -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 d98ab021cad..25c64240e74 100644 --- a/library/std/src/io/cursor.rs +++ b/library/std/src/io/cursor.rs @@ -34,7 +34,7 @@ use crate::io::{self, BorrowedCursor, ErrorKind, IoSlice, IoSliceMut, 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 { |
