Skip to content

Commit 0056759

Browse files
m-ou-seteor2345
andauthored
Typo.
Co-authored-by: teor <teor@riseup.net>
1 parent f30e5ba commit 0056759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3348-c-str-literal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Interactions with string related macros:
7676
For regular string literals, we have this restriction because `&str` is required to be valid UTF-8.
7777
However, C literals (and objects of our `&CStr` type) aren't necessarily valid UTF-8.
7878

79-
* Allowing only ASCII characters rand byte-oriented escape codes (like in `b"…"`, e.g. `\xff` but not `螃蟹` or `\u{1F980}`).
79+
* Allowing only ASCII characters and byte-oriented escape codes (like in `b"…"`, e.g. `\xff` but not `螃蟹` or `\u{1F980}`).
8080

8181
While C literals (and `&CStr`) aren't necessarily valid UTF-8, they often do contain UTF-8 data.
8282
Refusing to put UTF-8 in it would make the feature less useful and would unnecessarily make it harder to use unicode in programs that mainly use C strings.

0 commit comments

Comments
 (0)