diff options
| author | Murarth <murarth@gmail.com> | 2018-03-21 10:47:03 -0700 |
|---|---|---|
| committer | Murarth <murarth@gmail.com> | 2018-03-21 15:36:50 -0700 |
| commit | 7c442e5c9b46de225f8903352b7dfc5552b297de (patch) | |
| tree | bb0f61b785a3f150b614f890f4abc1c99f06b557 /src/liballoc/string.rs | |
| parent | c19264fa835a1eca86de4fd2e86a87b3919e57cf (diff) | |
| download | rust-7c442e5c9b46de225f8903352b7dfc5552b297de.tar.gz rust-7c442e5c9b46de225f8903352b7dfc5552b297de.zip | |
Stabilize method `String::retain`
Diffstat (limited to 'src/liballoc/string.rs')
| -rw-r--r-- | src/liballoc/string.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index 9fec9091498..52ff6357c5b 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -1177,8 +1177,6 @@ impl String { /// # Examples /// /// ``` - /// #![feature(string_retain)] - /// /// let mut s = String::from("f_o_ob_ar"); /// /// s.retain(|c| c != '_'); @@ -1186,7 +1184,7 @@ impl String { /// assert_eq!(s, "foobar"); /// ``` #[inline] - #[unstable(feature = "string_retain", issue = "43874")] + #[stable(feature = "string_retain", since = "1.26.0")] pub fn retain<F>(&mut self, mut f: F) where F: FnMut(char) -> bool { |
