From: Robert Griesemer Date: Tue, 8 Jan 2013 02:02:58 +0000 (-0800) Subject: spec: s/char_lit/rune_lit/ X-Git-Tag: go1.1rc2~1453 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c863db4e8762d24df791025314ceb4241df921a3;p=gostls13.git spec: s/char_lit/rune_lit/ The spec talks explicitly about rune literals but the respective production is still called char_lit for historic reasons. Updated the two occurences. Fixes #4602. R=rsc, iant, r, ken CC=golang-dev https://golang.org/cl/7070048 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index e54068a2d7..59abbece68 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -423,7 +423,7 @@ After a backslash, certain single-character escapes represent special values: All other sequences starting with a backslash are illegal inside rune literals.

-char_lit         = "'" ( unicode_value | byte_value ) "'" .
+rune_lit         = "'" ( unicode_value | byte_value ) "'" .
 unicode_value    = unicode_char | little_u_value | big_u_value | escaped_char .
 byte_value       = octal_byte_value | hex_byte_value .
 octal_byte_value = `\` octal_digit octal_digit octal_digit .
@@ -2063,7 +2063,7 @@ or a parenthesized expression.
 
 Operand    = Literal | OperandName | MethodExpr | "(" Expression ")" .
 Literal    = BasicLit | CompositeLit | FunctionLit .
-BasicLit   = int_lit | float_lit | imaginary_lit | char_lit | string_lit .
+BasicLit   = int_lit | float_lit | imaginary_lit | rune_lit | string_lit .
 OperandName = identifier | QualifiedIdent.