]> Cypherpunks repositories - gostls13.git/commitdiff
examples contradicted text: '\octal' and '\hex' are fixed size
authorRob Pike <r@golang.org>
Wed, 12 Mar 2008 03:40:20 +0000 (20:40 -0700)
committerRob Pike <r@golang.org>
Wed, 12 Mar 2008 03:40:20 +0000 (20:40 -0700)
SVN=112150

doc/go_lang.txt

index 75a1a91c52289c468109e8b137f9264ec1c65fe6..b0d717e0ec9bd92fb413fe7e14561d3bd44c5dfb 100644 (file)
@@ -432,10 +432,10 @@ quotes. [Note: the Unicode doesn't look right in the browser.]
     'ä'
     '本'
     '\t'
-    '\0'
-    '\07'
-    '\0377'
-    '\x7'
+    '\000'
+    '\007'
+    '\377'
+    '\x07'
     '\xff'
     '\u12e4'
     '\U00101234'
@@ -1507,7 +1507,7 @@ Program
 A program is package clause, optionally followed by import declarations,
 followed by a series of declarations.
 
-Program = PackageClause { ImportDecl } { Declaration } .
+  Program = PackageClause { ImportDecl } { Declaration } .
 
 TODO
 ----