]> Cypherpunks repositories - gostls13.git/commitdiff
language spec: make NUL byte rule an implementation restriction
authorRobert Griesemer <gri@golang.org>
Wed, 17 Feb 2010 23:50:34 +0000 (15:50 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 17 Feb 2010 23:50:34 +0000 (15:50 -0800)
R=rsc, r, iant, ken2
CC=golang-dev
https://golang.org/cl/211041

doc/go_spec.html

index 06dcf3918eff343d982a468b155800310f435de1..bcde026723f200d41d48e70e9a532cee9e4203b1 100644 (file)
@@ -90,7 +90,8 @@ Each code point is distinct; for instance, upper and lower case letters
 are different characters.
 </p>
 <p>
-Source code must not contain the NUL character (U+0000).
+Implementation restriction: For compatibility with other tools, a
+compiler may disallow the NUL character (U+0000) in the source text.
 </p>
 
 <h3 id="Characters">Characters</h3>