Skip to content

Commit 74adadb

Browse files
committed
ascii: Doc tweak.
1 parent 5fdf9eb commit 74adadb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ascii/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fn bad_ascii() {
9595

9696
// `bogus` now holds ill-formed UTF-8. Parsing its first character produces
9797
// a `char` that is not a valid Unicode code point. That's undefined
98-
// behavior, so we can't really say what this assertion will do. It could
99-
// pass, fail, crash, do nothing at all, etc.
98+
// behavior, so the language doesn't say how this assertion should behave.
99+
// It could pass, fail, crash, do nothing at all, etc.
100100
assert_eq!(bogus.chars().next().unwrap() as u32, 0x1fffff_u32);
101101
}

0 commit comments

Comments
 (0)