@@ -313,7 +313,7 @@ <h3 class="Ss" id="Numeric_formats"><a class="permalink" href="#Numeric_formats"
313313 < tr >
314314 < td > Character constant</ td >
315315 < td > none</ td >
316- < td > " ABYZ" </ td >
316+ < td > ' ABYZ' </ td >
317317 </ tr >
318318 < tr >
319319 < td > Game Boy graphics</ td >
@@ -328,9 +328,12 @@ <h3 class="Ss" id="Numeric_formats"><a class="permalink" href="#Numeric_formats"
328328< p class ="Pp "> The "character constant" form yields the value the
329329 character maps to in the current charmap. For example, by default (refer to
330330 < a class ="Xr " href ="https://man7.org/linux/man-pages/man7/ascii.7.html "> ascii(7)</ a > )
331- ‘"A"’ yields 65. See
332- < a class ="Sx " href ="#Character_maps "> Character maps</ a > for information on
333- charmaps.</ p >
331+ ‘'A'’ yields 65. A character constant must represent a single
332+ value, so it cannot include multiple characters, or characters which map to
333+ multiple values. See < a class ="Sx " href ="#Character_maps "> Character maps</ a >
334+ for information on charmaps, and
335+ < a class ="Sx " href ="#String_expressions "> String expressions</ a > for
336+ information on escape characters allowed in character constants.</ p >
334337< p class ="Pp "> The last one, Game Boy graphics, is quite interesting and useful.
335338 After the backtick, 8 digits between 0 and 3 are expected, corresponding to
336339 pixel values. The resulting value is the two bytes of tile data that would
@@ -711,7 +714,11 @@ <h3 class="Ss" id="String_expressions"><a class="permalink" href="#String_expres
711714 </ tr >
712715 < tr >
713716 < td > ‘< code class ="Li "> \"</ code > ’</ td >
714- < td > Double quote (does not terminate the string)</ td >
717+ < td > Double quote (does not terminate a string)</ td >
718+ </ tr >
719+ < tr >
720+ < td > ‘< code class ="Li "> \'</ code > ’</ td >
721+ < td > Single quote (does not terminate a character literal)</ td >
715722 </ tr >
716723 < tr >
717724 < td > ‘< code class ="Li "> \{</ code > ’</ td >
0 commit comments