mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Rollup merge of #131267 - okaneco:bufread_skip_until, r=tgross35
Stabilize `BufRead::skip_until` FCP completed https://github.com/rust-lang/rust/issues/111735#issuecomment-2393893069 Closes #111735
This commit is contained in:
commit
3078b23bbf
@ -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");
|
||||
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user