Skip to content

Commit c04568b

Browse files
committed
Stabilize std::io::read_to_string
1 parent 6d3f1be commit c04568b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/std/src/io/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,8 +1028,6 @@ pub trait Read {
10281028
/// # Examples
10291029
///
10301030
/// ```no_run
1031-
/// #![feature(io_read_to_string)]
1032-
///
10331031
/// # use std::io;
10341032
/// fn main() -> io::Result<()> {
10351033
/// let stdin = io::read_to_string(io::stdin())?;
@@ -1038,7 +1036,7 @@ pub trait Read {
10381036
/// Ok(())
10391037
/// }
10401038
/// ```
1041-
#[unstable(feature = "io_read_to_string", issue = "80218")]
1039+
#[stable(feature = "io_read_to_string", since = "1.65.0")]
10421040
pub fn read_to_string<R: Read>(mut reader: R) -> Result<String> {
10431041
let mut buf = String::new();
10441042
reader.read_to_string(&mut buf)?;

0 commit comments

Comments
 (0)