Skip to content

Commit

Permalink
Auto merge of #49681 - tmccombs:take-set-limit-stable, r=sfackler
Browse files Browse the repository at this point in the history
Stabilize take_set_limit

Fixes #42781
  • Loading branch information
bors committed Apr 11, 2018
2 parents 43e994c + 210a2a2 commit ca26ef3
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 ca26ef3

Please sign in to comment.