diff options
| author | okaneco <47607823+okaneco@users.noreply.github.com> | 2024-10-04 14:56:15 -0400 |
|---|---|---|
| committer | okaneco <47607823+okaneco@users.noreply.github.com> | 2024-10-04 14:56:15 -0400 |
| commit | e08002f6d0bfcea06357137dd52ee2c163757154 (patch) | |
| tree | 4a81936c905e6858bd54d7918a296951253a97e6 | |
| parent | c39f318c5e734e7f254c6b2589205d6ed936443d (diff) | |
| download | rust-e08002f6d0bfcea06357137dd52ee2c163757154.tar.gz rust-e08002f6d0bfcea06357137dd52ee2c163757154.zip | |
Stabilize `BufRead::skip_until`
| -rw-r--r-- | library/std/src/io/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index dd6458c38c6..8fedcb241d0 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -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) } |
