mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
\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:
parent
8a1ad75644
commit
613a5c8bc6
3 changed files with 14 additions and 5 deletions
|
|
@ -25,7 +25,7 @@ func DoubleQuote(s string) string {
|
|||
case '\t':
|
||||
out += `\t`;
|
||||
case '\x00':
|
||||
out += `\0`;
|
||||
out += `\x00`;
|
||||
case '"':
|
||||
out += `\"`;
|
||||
case '\\':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue