diff options
| author | Mikko Rantanen <jubjub@jubjubnest.net> | 2020-05-27 16:21:30 +0300 |
|---|---|---|
| committer | Mikko Rantanen <jubjub@jubjubnest.net> | 2020-05-27 16:21:30 +0300 |
| commit | 66e99849389475f1f425512278bfeddb25944deb (patch) | |
| tree | ff78c05fe28b56162dd3de7791b5cf5867d94539 /src/libcore | |
| parent | de6060b09d23d8c50afe88354358aa056c27ad9f (diff) | |
Fix is_char_boundary documentation
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/str/mod.rs | 7 |
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()`. /// |
