We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd14c52 commit 5e7a8c6Copy full SHA for 5e7a8c6
library/std/src/io/mod.rs
@@ -1059,7 +1059,7 @@ impl<'a> IoSliceMut<'a> {
1059
/// let mut data = [1; 8];
1060
/// let mut buf = IoSliceMut::new(&mut data);
1061
///
1062
- /// // Mark 10 bytes as read.
+ /// // Mark 3 bytes as read.
1063
/// buf.advance(3);
1064
/// assert_eq!(buf.deref(), [1; 5].as_ref());
1065
/// ```
@@ -1193,7 +1193,7 @@ impl<'a> IoSlice<'a> {
1193
1194
/// let mut buf = IoSlice::new(&mut data);
1195
1196
1197
1198
1199
0 commit comments