Skip to content

Commit ca26ef3

Browse files
committed
Auto merge of #49681 - tmccombs:take-set-limit-stable, r=sfackler
Stabilize take_set_limit Fixes #42781
2 parents 43e994c + 210a2a2 commit ca26ef3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libstd/io/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1829,7 +1829,6 @@ impl<T> Take<T> {
18291829
/// # Examples
18301830
///
18311831
/// ```no_run
1832-
/// #![feature(take_set_limit)]
18331832
/// use std::io;
18341833
/// use std::io::prelude::*;
18351834
/// use std::fs::File;
@@ -1845,7 +1844,7 @@ impl<T> Take<T> {
18451844
/// Ok(())
18461845
/// }
18471846
/// ```
1848-
#[unstable(feature = "take_set_limit", issue = "42781")]
1847+
#[stable(feature = "take_set_limit", since = "1.27.0")]
18491848
pub fn set_limit(&mut self, limit: u64) {
18501849
self.limit = limit;
18511850
}

0 commit comments

Comments
 (0)