We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
std::io::read_to_string
1 parent 6d3f1be commit c04568bCopy full SHA for c04568b
library/std/src/io/mod.rs
@@ -1028,8 +1028,6 @@ pub trait Read {
1028
/// # Examples
1029
///
1030
/// ```no_run
1031
-/// #![feature(io_read_to_string)]
1032
-///
1033
/// # use std::io;
1034
/// fn main() -> io::Result<()> {
1035
/// let stdin = io::read_to_string(io::stdin())?;
@@ -1038,7 +1036,7 @@ pub trait Read {
1038
1036
/// Ok(())
1039
1037
/// }
1040
/// ```
1041
-#[unstable(feature = "io_read_to_string", issue = "80218")]
+#[stable(feature = "io_read_to_string", since = "1.65.0")]
1042
pub fn read_to_string<R: Read>(mut reader: R) -> Result<String> {
1043
let mut buf = String::new();
1044
reader.read_to_string(&mut buf)?;
0 commit comments