about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2019-03-02 14:55:12 +0800
committerkennytm <kennytm@gmail.com>2019-03-02 22:58:22 +0800
commitf67736ad04e4e727a62a59e94570467aaf9042d9 (patch)
tree9c83b8165be3b172adbed0ea6ed04c71443e30ab /src/libcore
parentdf2b6bcf5a4bd1acc36c92196cc172ac1a69ca73 (diff)
parentb70a9532a9d3e2ae4b9bf7bc4a4a0bfc7dbe134b (diff)
downloadrust-f67736ad04e4e727a62a59e94570467aaf9042d9.tar.gz
rust-f67736ad04e4e727a62a59e94570467aaf9042d9.zip
Rollup merge of #58782 - tspiteri:str-escape-self, r=kennytm
Replace `s` with `self` in docs for str methods taking self.

Cherry picked from PR #58596 which is blocked on some intra-doc link bugs.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/str/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index 8b51d846514..53334adadb8 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -3965,7 +3965,7 @@ impl str {
         me.make_ascii_lowercase()
     }
 
-    /// Return an iterator that escapes each char in `s` with [`char::escape_debug`].
+    /// Return an iterator that escapes each char in `self` with [`char::escape_debug`].
     ///
     /// Note: only extended grapheme codepoints that begin the string will be
     /// escaped.
@@ -4013,7 +4013,7 @@ impl str {
         }
     }
 
-    /// Return an iterator that escapes each char in `s` with [`char::escape_default`].
+    /// Return an iterator that escapes each char in `self` with [`char::escape_default`].
     ///
     /// [`char::escape_default`]: ../std/primitive.char.html#method.escape_default
     ///
@@ -4051,7 +4051,7 @@ impl str {
         EscapeDefault { inner: self.chars().flat_map(CharEscapeDefault) }
     }
 
-    /// Return an iterator that escapes each char in `s` with [`char::escape_unicode`].
+    /// Return an iterator that escapes each char in `self` with [`char::escape_unicode`].
     ///
     /// [`char::escape_unicode`]: ../std/primitive.char.html#method.escape_unicode
     ///