diff --git a/source/declarations.tex b/source/declarations.tex index 8c86e2ee99..d5a487d3dc 100644 --- a/source/declarations.tex +++ b/source/declarations.tex @@ -5367,12 +5367,11 @@ UTF-32 string literal, or wide string literal, respectively, or by an appropriately-typed \grammarterm{string-literal} enclosed in -braces\iref{lex.string}. +braces. \indextext{initialization!character array}% -Successive -characters of the -value of the \grammarterm{string-literal} -initialize the elements of the array. +The elements of the array are initialized +with successive values of the sequence of code unit values +represented by the \grammarterm{string-literal}\iref{lex.string}. \begin{example} \begin{codeblock} char msg[] = "Syntax error on line %s\n"; diff --git a/source/lex.tex b/source/lex.tex index 210a116c69..f19b8a58ea 100644 --- a/source/lex.tex +++ b/source/lex.tex @@ -1881,9 +1881,11 @@ \indextext{\idxcode{0}|seealso{zero, null}}% \indextext{\idxcode{0}!string terminator}% \indextext{\idxcode{0}!null character|see {character, null}}% -String literal objects are initialized with +A string literal object is initialized with the sequence of code unit values -corresponding to the \grammarterm{string-literal}'s sequence of +represented by the \grammarterm{string-literal}. +A \grammarterm{string-literal} represents +a sequence of code unit values corresponding to the sequence of \grammarterm{s-char}s (originally from non-raw string literals) and \grammarterm{r-char}s (originally from raw string literals), plus a terminating \unicode{0000}{null} character,