Stabilize bufreader_seek_relative

This commit is contained in:
philippeitis 2021-03-10 01:52:11 -08:00 committed by GitHub
parent 861872bc45
commit c5ac064666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,7 +234,7 @@ impl<R: Seek> BufReader<R> {
/// the buffer will not be flushed, allowing for more efficient seeks.
/// This method does not return the location of the underlying reader, so the caller
/// must track this information themselves if it is required.
#[unstable(feature = "bufreader_seek_relative", issue = "31100")]
#[stable(feature = "bufreader_seek_relative", since = "1.52.0")]
pub fn seek_relative(&mut self, offset: i64) -> io::Result<()> {
let pos = self.pos as u64;
if offset < 0 {