Skip to content

Commit e08002f

Browse files
committed
Stabilize BufRead::skip_until
1 parent c39f318 commit e08002f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/std/src/io/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2382,8 +2382,6 @@ pub trait BufRead: Read {
23822382
/// about Ferris from a binary string, skipping the fun fact:
23832383
///
23842384
/// ```
2385-
/// #![feature(bufread_skip_until)]
2386-
///
23872385
/// use std::io::{self, BufRead};
23882386
///
23892387
/// let mut cursor = io::Cursor::new(b"Ferris\0Likes long walks on the beach\0Crustacean\0");
@@ -2407,7 +2405,7 @@ pub trait BufRead: Read {
24072405
/// assert_eq!(num_bytes, 11);
24082406
/// assert_eq!(animal, b"Crustacean\0");
24092407
/// ```
2410-
#[unstable(feature = "bufread_skip_until", issue = "111735")]
2408+
#[stable(feature = "bufread_skip_until", since = "CURRENT_RUSTC_VERSION")]
24112409
fn skip_until(&mut self, byte: u8) -> Result<usize> {
24122410
skip_until(self, byte)
24132411
}

0 commit comments

Comments
 (0)