about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorMikko Rantanen <jubjub@jubjubnest.net>2020-05-27 16:21:30 +0300
committerMikko Rantanen <jubjub@jubjubnest.net>2020-05-27 16:21:30 +0300
commit66e99849389475f1f425512278bfeddb25944deb (patch)
treeff78c05fe28b56162dd3de7791b5cf5867d94539 /src/libcore
parentde6060b09d23d8c50afe88354358aa056c27ad9f (diff)
Fix is_char_boundary documentation
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/str/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index c517286d498..faf2165d813 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -2270,12 +2270,11 @@ impl str {
         self.len() == 0
     }
 
-    /// Checks that `index`-th byte lies at the start and/or end of a
-    /// UTF-8 code point sequence.
+    /// Checks that `index`-th byte is the first byte in a UTF-8 code point
+    /// sequence or the end of the string.
     ///
     /// The start and end of the string (when `index == self.len()`) are
-    /// considered to be
-    /// boundaries.
+    /// considered to be boundaries.
     ///
     /// Returns `false` if `index` is greater than `self.len()`.
     ///