From deac889efd06a3214da07cbdfc0dec00450f6712 Mon Sep 17 00:00:00 2001 From: Matthew Woodcraft Date: Tue, 30 Jan 2024 19:18:43 +0000 Subject: [PATCH] Use "null byte" rather than "zero byte" when talking about C string literals --- src/expressions/literal-expr.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/expressions/literal-expr.md b/src/expressions/literal-expr.md index 2f807ff..5a74425 100644 --- a/src/expressions/literal-expr.md +++ b/src/expressions/literal-expr.md @@ -271,9 +271,9 @@ The sequence of items is converted to a sequence of bytes as follows: * If the token is a [RAW_C_STRING_LITERAL], the represented bytes are the UTF-8 encoding of the literal content. -> **Note**: the permitted forms of [C_STRING_LITERAL] and [RAW_C_STRING_LITERAL] tokens ensure that the represented bytes never include a zero byte. +> **Note**: the permitted forms of [C_STRING_LITERAL] and [RAW_C_STRING_LITERAL] tokens ensure that the represented bytes never include a null byte. -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. +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. Examples of C string literal expressions: