diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2014-12-29 08:54:51 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2014-12-29 08:54:51 +0100 |
| commit | c1f3acaa64a004577b79834996715595877efffc (patch) | |
| tree | 6eb0e77438d9392fb1798e614388fef13ec0c222 | |
| parent | 72c8f3772bdca40ff2be2908aaf6b6a73d1c7821 (diff) | |
Marked find and rfind as stable
| -rw-r--r-- | src/libcollections/str.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index 446438c119f..eeec7f767ab 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -1475,7 +1475,7 @@ pub trait StrExt for Sized?: ops::Slice<uint, str> { /// let x: &[_] = &['1', '2']; /// assert_eq!(s.find(x), None); /// ``` - #[unstable = "might be superseded by match_indices"] + #[stable] fn find<P: CharEq>(&self, pat: P) -> Option<uint> { core_str::StrExt::find(self[], pat) } @@ -1503,7 +1503,7 @@ pub trait StrExt for Sized?: ops::Slice<uint, str> { /// let x: &[_] = &['1', '2']; /// assert_eq!(s.rfind(x), None); /// ``` - #[unstable = "might be superseded by match_indices"] + #[stable] fn rfind<P: CharEq>(&self, pat: P) -> Option<uint> { core_str::StrExt::rfind(self[], pat) } |
