We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
capacity
1 parent 002287d commit df7d9f3Copy full SHA for df7d9f3
src/libstd/io/buffered.rs
@@ -198,7 +198,7 @@ impl<R> BufReader<R> {
198
/// Ok(())
199
/// }
200
/// ```
201
- #[unstable(feature = "buffered_io_capacity", issue = "68558")]
+ #[unstable(feature = "buffered_io_capacity", issue = "68833")]
202
pub fn capacity(&self) -> usize {
203
self.buf.len()
204
}
@@ -616,7 +616,7 @@ impl<W: Write> BufWriter<W> {
616
/// // Calculate how many bytes can be written without flushing
617
/// let without_flush = capacity - buf_writer.buffer().len();
618
619
620
621
self.buf.capacity()
622
0 commit comments