Skip to content

Commit

Permalink
Stabilize take_set_limit
Browse files Browse the repository at this point in the history
Fixes #42781
  • Loading branch information
tmccombs committed Apr 5, 2018
1 parent 3b1fa86 commit 210a2a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libstd/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit 210a2a2

Please sign in to comment.