diff options
| author | Thayne McCombs <astrothayne@gmail.com> | 2018-04-05 00:30:49 -0600 |
|---|---|---|
| committer | Thayne McCombs <astrothayne@gmail.com> | 2018-04-05 00:30:49 -0600 |
| commit | 210a2a2b9e5f7bc105897654bfea0f9cc7c8d89f (patch) | |
| tree | b7f0928d28d579e36986919ee2e112bbdba61d64 /src/libstd | |
| parent | 3b1fa867f2d053102c2f0effc4b81424bf97866b (diff) | |
| download | rust-210a2a2b9e5f7bc105897654bfea0f9cc7c8d89f.tar.gz rust-210a2a2b9e5f7bc105897654bfea0f9cc7c8d89f.zip | |
Stabilize take_set_limit
Fixes #42781
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index 3b8c42ddb39..b02e133ee4d 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1829,7 +1829,6 @@ impl<T> Take<T> { /// # Examples /// /// ```no_run - /// #![feature(take_set_limit)] /// use std::io; /// use std::io::prelude::*; /// use std::fs::File; @@ -1845,7 +1844,7 @@ impl<T> Take<T> { /// Ok(()) /// } /// ``` - #[unstable(feature = "take_set_limit", issue = "42781")] + #[stable(feature = "take_set_limit", since = "1.27.0")] pub fn set_limit(&mut self, limit: u64) { self.limit = limit; } |
