Skip to content

Commit

Permalink
Fix broken test, probably
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucretiel authored May 8, 2023
1 parent 25c01eb commit cf9256f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1303,12 +1303,12 @@ impl<'a> IoSlice<'a> {
/// let data = b"abcdef";
///
/// let mut io_slice = IoSlice::new(data);
/// let tail = io_slice.as_bytes()[3..];
/// let tail = io_slice.into_bytes()[3..];
///
/// // This works because `tail` doesn't borrow `io_slice`
/// io_slice = IoSlice::new(tail);
///
/// assert_eq!(io_slice.as_bytes(), b"def");
/// assert_eq!(io_slice.into_bytes(), b"def");
/// ```
#[unstable(feature = "io_slice_as_bytes", issue = "111277")]
#[inline]
Expand Down

0 comments on commit cf9256f

Please sign in to comment.