diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-02-05 13:14:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-05 13:14:34 +0100 |
| commit | cf32b7118dd307016aa2d08edb66ebe1d936d636 (patch) | |
| tree | ebb8b71c3fb096fcbb4012dc11f716f7c7c9472a /src/libstd | |
| parent | c0fbac58dbd393be42e7a44175c631a5b9e55d59 (diff) | |
| parent | df7d9f383848dcb31a2f94bb1df5270ea21aff4b (diff) | |
| download | rust-cf32b7118dd307016aa2d08edb66ebe1d936d636.tar.gz rust-cf32b7118dd307016aa2d08edb66ebe1d936d636.zip | |
Rollup merge of #68851 - JohnTitor:fix-issue-number, r=Centril
Fix issue number of `capacity` method Follow-up of https://github.com/rust-lang/rust/pull/68558#issuecomment-582117131 r? @alexcrichton
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/buffered.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/buffered.rs b/src/libstd/io/buffered.rs index 6739d4498a6..8862226adbb 100644 --- a/src/libstd/io/buffered.rs +++ b/src/libstd/io/buffered.rs @@ -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() } @@ -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() } |
