1
0
mirror of https://github.com/golang/go synced 2024-11-22 08:14:40 -07:00

fixed \\ secape in strings

SVN=121553
This commit is contained in:
Ken Thompson 2008-06-06 17:08:21 -07:00
parent cc85574c25
commit 609cf0c3a7

View File

@ -749,6 +749,7 @@ loop:
case 'r': return '\r'; case 'r': return '\r';
case 't': return '\t'; case 't': return '\t';
case 'v': return '\v'; case 'v': return '\v';
case '\\': return '\\';
default: default:
if(c != e) if(c != e)