Skip to content

Commit

Permalink
Stabilize Seek::seek_relative
Browse files Browse the repository at this point in the history
  • Loading branch information
slanterns committed Apr 11, 2024
1 parent 72fe8a0 commit cf836bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/std/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,6 @@ pub trait Seek {
/// # Example
///
/// ```no_run
/// #![feature(seek_seek_relative)]
/// use std::{
/// io::{self, Seek},
/// fs::File,
Expand All @@ -2070,7 +2069,7 @@ pub trait Seek {
/// ```
///
/// [`BufReader`]: crate::io::BufReader
#[unstable(feature = "seek_seek_relative", issue = "117374")]
#[stable(feature = "seek_seek_relative", since = "CURRENT_RUSTC_VERSION")]
fn seek_relative(&mut self, offset: i64) -> Result<()> {
self.seek(SeekFrom::Current(offset))?;
Ok(())
Expand Down

0 comments on commit cf836bc

Please sign in to comment.