Skip to content

Commit deac889

Browse files
committed
Use "null byte" rather than "zero byte" when talking about C string literals
1 parent 52dadd7 commit deac889

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/expressions/literal-expr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ The sequence of items is converted to a sequence of bytes as follows:
271271

272272
* If the token is a [RAW_C_STRING_LITERAL], the represented bytes are the UTF-8 encoding of the literal content.
273273

274-
> **Note**: the permitted forms of [C_STRING_LITERAL] and [RAW_C_STRING_LITERAL] tokens ensure that the represented bytes never include a zero byte.
274+
> **Note**: the permitted forms of [C_STRING_LITERAL] and [RAW_C_STRING_LITERAL] tokens ensure that the represented bytes never include a null byte.
275275
276-
The expression's value is a reference to a statically allocated [Cstr] whose array of bytes contains the represented bytes followed by a zero byte.
276+
The expression's value is a reference to a statically allocated [CStr] whose array of bytes contains the represented bytes followed by a null byte.
277277

278278
Examples of C string literal expressions:
279279

0 commit comments

Comments
 (0)