]> Cypherpunks repositories - gostls13.git/commitdiff
- fixed a bug with //-comment parsing
authorRobert Griesemer <gri@golang.org>
Tue, 24 Feb 2009 01:16:55 +0000 (17:16 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 24 Feb 2009 01:16:55 +0000 (17:16 -0800)
R=r
OCL=25343
CL=25343

usr/gri/pretty/scanner.go

index 18e5d57921940d2f27c2cf9d02c1d5379d5683e2..05275a0f65dd47f6137b4d4ca07fddca59097125 100644 (file)
@@ -399,7 +399,6 @@ func (S *Scanner) scanComment() string {
 
        if S.ch == '/' {
                //-style comment
-               S.next();
                for S.ch >= 0 {
                        S.next();
                        if S.ch == '\n' {