diff options
author | Robert Griesemer <gri@golang.org> | 2008-07-09 17:08:20 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2008-07-09 17:08:20 -0700 |
commit | 9bbf9aa575fd2ad5b7e743e09e5b3492319a2a50 (patch) | |
tree | 957b8238ceb6b100a4ddb4b46f7a75290212aa7e /usr | |
parent | 3500c3a05374187efa2dfcc4400a0853707c5337 (diff) | |
download | golang-9bbf9aa575fd2ad5b7e743e09e5b3492319a2a50.tar.gz |
- minor bug fix
SVN=126585
Diffstat (limited to 'usr')
-rw-r--r-- | usr/gri/src/scanner.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/gri/src/scanner.go b/usr/gri/src/scanner.go index 62798295d..37778033e 100644 --- a/usr/gri/src/scanner.go +++ b/usr/gri/src/scanner.go @@ -387,7 +387,7 @@ func (S *Scanner) LineCol(pos int) (line, col int) { } for i := 0; i < pos; i++ { - if src[i] != '\n' { + if src[i] == '\n' { line++; lpos = i; } |