From 5e7a8c6eb12e1fb84cf2538cf87db32c54b938a2 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Thu, 17 Jun 2021 12:13:06 +0200 Subject: [PATCH] Fix typos in code examples. --- library/std/src/io/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index 7187ec71bc9..f57529767a9 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -1059,7 +1059,7 @@ pub fn new(buf: &'a mut [u8]) -> IoSliceMut<'a> { /// let mut data = [1; 8]; /// let mut buf = IoSliceMut::new(&mut data); /// - /// // Mark 10 bytes as read. + /// // Mark 3 bytes as read. /// buf.advance(3); /// assert_eq!(buf.deref(), [1; 5].as_ref()); /// ``` @@ -1193,7 +1193,7 @@ pub fn new(buf: &'a [u8]) -> IoSlice<'a> { /// let mut data = [1; 8]; /// let mut buf = IoSlice::new(&mut data); /// - /// // Mark 10 bytes as read. + /// // Mark 3 bytes as read. /// buf.advance(3); /// assert_eq!(buf.deref(), [1; 5].as_ref()); /// ```