Skip to content

Commit 15c1c1f

Browse files
authored
Rollup merge of rust-lang#58782 - tspiteri:str-escape-self, r=kennytm
Replace `s` with `self` in docs for str methods taking self. Cherry picked from PR rust-lang#58596 which is blocked on some intra-doc link bugs.
2 parents 20409cc + b70a953 commit 15c1c1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/str/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -3965,7 +3965,7 @@ impl str {
39653965
me.make_ascii_lowercase()
39663966
}
39673967

3968-
/// Return an iterator that escapes each char in `s` with [`char::escape_debug`].
3968+
/// Return an iterator that escapes each char in `self` with [`char::escape_debug`].
39693969
///
39703970
/// Note: only extended grapheme codepoints that begin the string will be
39713971
/// escaped.
@@ -4013,7 +4013,7 @@ impl str {
40134013
}
40144014
}
40154015

4016-
/// Return an iterator that escapes each char in `s` with [`char::escape_default`].
4016+
/// Return an iterator that escapes each char in `self` with [`char::escape_default`].
40174017
///
40184018
/// [`char::escape_default`]: ../std/primitive.char.html#method.escape_default
40194019
///
@@ -4051,7 +4051,7 @@ impl str {
40514051
EscapeDefault { inner: self.chars().flat_map(CharEscapeDefault) }
40524052
}
40534053

4054-
/// Return an iterator that escapes each char in `s` with [`char::escape_unicode`].
4054+
/// Return an iterator that escapes each char in `self` with [`char::escape_unicode`].
40554055
///
40564056
/// [`char::escape_unicode`]: ../std/primitive.char.html#method.escape_unicode
40574057
///

0 commit comments

Comments
 (0)