Skip to content

Commit

Permalink
Rollup merge of rust-lang#131267 - okaneco:bufread_skip_until, r=tgro…
Browse files Browse the repository at this point in the history
…ss35

Stabilize `BufRead::skip_until`

FCP completed rust-lang#111735 (comment)

Closes rust-lang#111735
  • Loading branch information
workingjubilee authored Oct 5, 2024
2 parents 65049d1 + b732d23 commit bbe8bf7
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 bbe8bf7

Please sign in to comment.