We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93fa2d7 commit 37f719eCopy full SHA for 37f719e
src/libcore/str/mod.rs
@@ -1424,10 +1424,8 @@ fn contains_nonascii(x: usize) -> bool {
1424
(x & NONASCII_MASK) != 0
1425
}
1426
1427
-/// Walks through `iter` checking that it's a valid UTF-8 sequence,
1428
-/// returning `true` in that case, or, if it is invalid, `false` with
1429
-/// `iter` reset such that it is pointing at the first byte in the
1430
-/// invalid sequence.
+/// Walks through `v` checking that it's a valid UTF-8 sequence,
+/// returning `Ok(())` in that case, or, if it is invalid, `Err(err)`.
1431
#[inline]
1432
fn run_utf8_validation(v: &[u8]) -> Result<(), Utf8Error> {
1433
let mut index = 0;
0 commit comments