Follow C-RW-VALUE in std::io::Cursor example

This commit is contained in:
Matt Fellenz 2022-06-28 17:01:37 -07:00
parent 8308806403
commit 39eb148231
No known key found for this signature in database
GPG key ID: D0061A7BB596E3B3

View file

@ -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 {