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 223d16e commit 2df5afeCopy full SHA for 2df5afe
library/std/src/io/mod.rs
@@ -1037,8 +1037,6 @@ pub trait Read {
1037
/// # Examples
1038
///
1039
/// ```no_run
1040
-/// #![feature(io_read_to_string)]
1041
-///
1042
/// # use std::io;
1043
/// fn main() -> io::Result<()> {
1044
/// let stdin = io::read_to_string(io::stdin())?;
@@ -1047,7 +1045,7 @@ pub trait Read {
1047
1045
/// Ok(())
1048
1046
/// }
1049
/// ```
1050
-#[unstable(feature = "io_read_to_string", issue = "80218")]
+#[stable(feature = "io_read_to_string", since = "CURRENT_RUSTC_VERSION")]
1051
pub fn read_to_string<R: Read>(mut reader: R) -> Result<String> {
1052
let mut buf = String::new();
1053
reader.read_to_string(&mut buf)?;
0 commit comments