Set tracking issue for str_strip

This commit is contained in:
SOFe 2019-12-15 17:07:57 +08:00
parent 4718e20fcf
commit 6176051dd0
No known key found for this signature in database
GPG Key ID: 6606A3CFCC04EC70

View File

@ -3810,7 +3810,7 @@ impl str {
/// ```
#[must_use = "this returns the remaining substring as a new slice, \
without modifying the original"]
#[unstable(feature = "str_strip", reason = "newly added", issue = "0")]
#[unstable(feature = "str_strip", reason = "newly added", issue = "67302")]
pub fn strip_prefix<'a, P: Pattern<'a>>(&'a self, prefix: P) -> Option<&'a str> {
let mut matcher = prefix.into_searcher(self);
if let SearchStep::Match(start, len) = matcher.next() {
@ -3843,7 +3843,7 @@ impl str {
/// ```
#[must_use = "this returns the remaining substring as a new slice, \
without modifying the original"]
#[unstable(feature = "str_strip", reason = "newly added", issue = "0")]
#[unstable(feature = "str_strip", reason = "newly added", issue = "67302")]
pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>
where
P: Pattern<'a>,