Skip to content

Commit 66e9984

Browse files
committed
Fix is_char_boundary documentation
1 parent de6060b commit 66e9984

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/libcore/str/mod.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -2270,12 +2270,11 @@ impl str {
22702270
self.len() == 0
22712271
}
22722272

2273-
/// Checks that `index`-th byte lies at the start and/or end of a
2274-
/// UTF-8 code point sequence.
2273+
/// Checks that `index`-th byte is the first byte in a UTF-8 code point
2274+
/// sequence or the end of the string.
22752275
///
22762276
/// The start and end of the string (when `index == self.len()`) are
2277-
/// considered to be
2278-
/// boundaries.
2277+
/// considered to be boundaries.
22792278
///
22802279
/// Returns `false` if `index` is greater than `self.len()`.
22812280
///

0 commit comments

Comments
 (0)