summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2008-07-09 17:08:20 -0700
committerRobert Griesemer <gri@golang.org>2008-07-09 17:08:20 -0700
commit9bbf9aa575fd2ad5b7e743e09e5b3492319a2a50 (patch)
tree957b8238ceb6b100a4ddb4b46f7a75290212aa7e /usr
parent3500c3a05374187efa2dfcc4400a0853707c5337 (diff)
downloadgolang-9bbf9aa575fd2ad5b7e743e09e5b3492319a2a50.tar.gz
- minor bug fix
SVN=126585
Diffstat (limited to 'usr')
-rw-r--r--usr/gri/src/scanner.go2
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;
}