diff options
| author | Marijn Schouten <mhkbst@gmail.com> | 2025-07-02 11:18:02 +0000 |
|---|---|---|
| committer | Marijn Schouten <mhkbst@gmail.com> | 2025-07-02 11:18:02 +0000 |
| commit | 626ca82fafe3000bb19cb99f1c6399709305ad6a (patch) | |
| tree | 5dc6a26f3859f7a735b7949d2620ab1fbfc59ad0 | |
| parent | f51c9870bab634afb9e7a262b6ca7816bb9e940d (diff) | |
| download | rust-626ca82fafe3000bb19cb99f1c6399709305ad6a.tar.gz rust-626ca82fafe3000bb19cb99f1c6399709305ad6a.zip | |
byte-addresses memory -> byte-addressed memory
| -rw-r--r-- | library/core/src/ffi/c_char.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ffi/c_char.md b/library/core/src/ffi/c_char.md index b262a3663b3..119b739a39e 100644 --- a/library/core/src/ffi/c_char.md +++ b/library/core/src/ffi/c_char.md @@ -1,6 +1,6 @@ Equivalent to C's `char` type. -[C's `char` type] is completely unlike [Rust's `char` type]; while Rust's type represents a unicode scalar value, C's `char` type is just an ordinary integer. On modern architectures this type will always be either [`i8`] or [`u8`], as they use byte-addresses memory with 8-bit bytes. +[C's `char` type] is completely unlike [Rust's `char` type]; while Rust's type represents a unicode scalar value, C's `char` type is just an ordinary integer. On modern architectures this type will always be either [`i8`] or [`u8`], as they use byte-addressed memory with 8-bit bytes. C chars are most commonly used to make C strings. Unlike Rust, where the length of a string is included alongside the string, C strings mark the end of a string with the character `'\0'`. See `CStr` for more information. |
