Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix issue number of capacity method
  • Loading branch information
JohnTitor committed Feb 5, 2020
1 parent 002287d commit df7d9f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/io/buffered.rs
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 df7d9f3

Please sign in to comment.