Skip to content

Commit b70a953

Browse files
committed
Replace s with self in docs for str methods taking self.
1 parent 4855370 commit b70a953

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)