File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,6 @@ impl<R> BufReader<R> {
184
184
/// # Examples
185
185
///
186
186
/// ```no_run
187
- /// #![feature(buffered_io_capacity)]
188
187
/// use std::io::{BufReader, BufRead};
189
188
/// use std::fs::File;
190
189
///
@@ -198,7 +197,7 @@ impl<R> BufReader<R> {
198
197
/// Ok(())
199
198
/// }
200
199
/// ```
201
- #[ unstable ( feature = "buffered_io_capacity" , issue = "68833 " ) ]
200
+ #[ stable ( feature = "buffered_io_capacity" , since = "1.46.0 " ) ]
202
201
pub fn capacity ( & self ) -> usize {
203
202
self . buf . len ( )
204
203
}
@@ -609,7 +608,6 @@ impl<W: Write> BufWriter<W> {
609
608
/// # Examples
610
609
///
611
610
/// ```no_run
612
- /// #![feature(buffered_io_capacity)]
613
611
/// use std::io::BufWriter;
614
612
/// use std::net::TcpStream;
615
613
///
@@ -620,7 +618,7 @@ impl<W: Write> BufWriter<W> {
620
618
/// // Calculate how many bytes can be written without flushing
621
619
/// let without_flush = capacity - buf_writer.buffer().len();
622
620
/// ```
623
- #[ unstable ( feature = "buffered_io_capacity" , issue = "68833 " ) ]
621
+ #[ stable ( feature = "buffered_io_capacity" , since = "1.46.0 " ) ]
624
622
pub fn capacity ( & self ) -> usize {
625
623
self . buf . capacity ( )
626
624
}
You can’t perform that action at this time.
0 commit comments