1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-02-12 07:56:25 +02:00

Mention that strings are UTF-8 encoded

Technically, it's the Rust source file that is UTF-8 encoded, but in practical terms, this means that the string literals are UTF-8 encoded. It's only if you start using non-ASCII identifiers that you end up with UTF-8 encoded text outside of a string literal.

Fixes #35.
This commit is contained in:
Martin Geisler 2022-12-28 09:32:28 +01:00 committed by GitHub
parent dcf29d4653
commit cac0641a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,4 +15,4 @@ What you see:
* Blocks are delimited by curly braces like in C and C++.
* The `main` function is the entry point of the program.
* Rust has hygienic macros, `println!` is an example of this.
* Rust strings can contain Unicode characters, such as emoji.
* Rust strings are UTF-8 encoded and can contain any Unicode character.