Skip to content

Commit 7c442e5

Browse files
committed
Stabilize method String::retain
1 parent c19264f commit 7c442e5

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

src/doc/unstable-book/src/library-features/string-retain.md

-23
This file was deleted.

src/liballoc/string.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1177,16 +1177,14 @@ impl String {
11771177
/// # Examples
11781178
///
11791179
/// ```
1180-
/// #![feature(string_retain)]
1181-
///
11821180
/// let mut s = String::from("f_o_ob_ar");
11831181
///
11841182
/// s.retain(|c| c != '_');
11851183
///
11861184
/// assert_eq!(s, "foobar");
11871185
/// ```
11881186
#[inline]
1189-
#[unstable(feature = "string_retain", issue = "43874")]
1187+
#[stable(feature = "string_retain", since = "1.26.0")]
11901188
pub fn retain<F>(&mut self, mut f: F)
11911189
where F: FnMut(char) -> bool
11921190
{

0 commit comments

Comments
 (0)