\x00 for NUL in type string.

R=rsc
DELTA=14  (9 added, 0 deleted, 5 changed)
OCL=18281
CL=18281
This commit is contained in:
Rob Pike 2008-10-31 15:26:14 -07:00
parent 8a1ad75644
commit 613a5c8bc6
3 changed files with 14 additions and 5 deletions

View file

@ -25,7 +25,7 @@ func DoubleQuote(s string) string {
case '\t':
out += `\t`;
case '\x00':
out += `\0`;
out += `\x00`;
case '"':
out += `\"`;
case '\\':