diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2022-08-09 11:08:56 -0700 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2022-08-28 13:23:19 -0700 |
| commit | 2df5afe622d6e56f5e275dd35d525cc6029be890 (patch) | |
| tree | 4aa692567bc5f281acfa0788d965f165585f10f3 | |
| parent | 223d16ebbde1bd309c58e853b053e14318e56b0e (diff) | |
| download | rust-2df5afe622d6e56f5e275dd35d525cc6029be890.tar.gz rust-2df5afe622d6e56f5e275dd35d525cc6029be890.zip | |
Stabilize `std::io::read_to_string`
| -rw-r--r-- | library/std/src/io/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index a9fa7b0a6ac..01a3873c75c 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -1037,8 +1037,6 @@ pub trait Read { /// # Examples /// /// ```no_run -/// #![feature(io_read_to_string)] -/// /// # use std::io; /// fn main() -> io::Result<()> { /// let stdin = io::read_to_string(io::stdin())?; @@ -1047,7 +1045,7 @@ pub trait Read { /// Ok(()) /// } /// ``` -#[unstable(feature = "io_read_to_string", issue = "80218")] +#[stable(feature = "io_read_to_string", since = "CURRENT_RUSTC_VERSION")] pub fn read_to_string<R: Read>(mut reader: R) -> Result<String> { let mut buf = String::new(); reader.read_to_string(&mut buf)?; |
