X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=library%2Fstd%2Fsrc%2Fio%2Fmod.rs;h=594cef27b413834be486ee2e407052ed88cfef33;hb=6d34a2e0074c5ce3e0da4743616ec5b3e96253fb;hp=00b85604a3f67bd5bd4dbd00b4f8313eb56aa5de;hpb=daa87adc4eacc7438b2a9da97e308a81fb5da255;p=rust.git diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index 00b85604a3f..594cef27b41 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -1736,7 +1736,6 @@ pub trait Seek { /// # Example /// /// ```no_run - /// #![feature(seek_rewind)] /// use std::io::{Read, Seek, Write}; /// use std::fs::OpenOptions; /// @@ -1754,7 +1753,7 @@ pub trait Seek { /// f.read_to_string(&mut buf).unwrap(); /// assert_eq!(&buf, hello); /// ``` - #[unstable(feature = "seek_rewind", issue = "85149")] + #[stable(feature = "seek_rewind", since = "1.55.0")] fn rewind(&mut self) -> Result<()> { self.seek(SeekFrom::Start(0))?; Ok(())