Skip to content

Commit

Permalink
Stabilize BufRead::skip_until
Browse files Browse the repository at this point in the history
  • Loading branch information
okaneco committed Oct 4, 2024
1 parent 1bd16cd commit b732d23
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions std/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2382,8 +2382,6 @@ pub trait BufRead: Read {
/// about Ferris from a binary string, skipping the fun fact:
///
/// ```
/// #![feature(bufread_skip_until)]
///
/// use std::io::{self, BufRead};
///
/// let mut cursor = io::Cursor::new(b"Ferris\0Likes long walks on the beach\0Crustacean\0");
Expand All @@ -2407,7 +2405,7 @@ pub trait BufRead: Read {
/// assert_eq!(num_bytes, 11);
/// assert_eq!(animal, b"Crustacean\0");
/// ```
#[unstable(feature = "bufread_skip_until", issue = "111735")]
#[stable(feature = "bufread_skip_until", since = "CURRENT_RUSTC_VERSION")]
fn skip_until(&mut self, byte: u8) -> Result<usize> {
skip_until(self, byte)
}
Expand Down

0 comments on commit b732d23

Please sign in to comment.