Skip to content

Commit

Permalink
Rollup merge of rust-lang#68851 - JohnTitor:fix-issue-number, r=Centril
Browse files Browse the repository at this point in the history
Fix issue number of `capacity` method

Follow-up of rust-lang#68558 (comment)

r? @alexcrichton
  • Loading branch information
Dylan-DPC committed Feb 5, 2020
2 parents c0fbac5 + df7d9f3 commit cf32b71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/io/buffered.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl<R> BufReader<R> {
/// Ok(())
/// }
/// ```
#[unstable(feature = "buffered_io_capacity", issue = "68558")]
#[unstable(feature = "buffered_io_capacity", issue = "68833")]
pub fn capacity(&self) -> usize {
self.buf.len()
}
Expand Down Expand Up @@ -616,7 +616,7 @@ impl<W: Write> BufWriter<W> {
/// // Calculate how many bytes can be written without flushing
/// let without_flush = capacity - buf_writer.buffer().len();
/// ```
#[unstable(feature = "buffered_io_capacity", issue = "68558")]
#[unstable(feature = "buffered_io_capacity", issue = "68833")]
pub fn capacity(&self) -> usize {
self.buf.capacity()
}
Expand Down

0 comments on commit cf32b71

Please sign in to comment.