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

all: fix errors found by go vet

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6125044
This commit is contained in:
Rob Pike 2012-04-25 11:33:27 +10:00
parent dde8358a1c
commit 459837c86e
2 changed files with 3 additions and 3 deletions

View File

@ -607,7 +607,7 @@ func printCharInfoTables() int {
tccc := ccc(d[len(d)-1])
cc := ccc(r)
if cc != 0 && lccc == 0 && tccc == 0 {
logger.Fatalf("%U: trailing and leading ccc are 0 for non-zero ccc %d", cc)
logger.Fatalf("%U: trailing and leading ccc are 0 for non-zero ccc %d", r, cc)
}
if tccc < lccc && lccc != 0 {
const msg = "%U: lccc (%d) must be <= tcc (%d)"
@ -623,7 +623,7 @@ func printCharInfoTables() int {
}
if cc != lccc {
if cc != 0 {
logger.Fatalf("%U: for lccc != ccc, expected ccc to be 0; was %d", cc)
logger.Fatalf("%U: for lccc != ccc, expected ccc to be 0; was %d", r, cc)
}
index = 3
}

View File

@ -348,7 +348,7 @@ Loop:
l.backup()
word := l.input[l.start:l.pos]
if !l.atTerminator() {
return l.errorf("bad character %+U", r)
return l.errorf("bad character %#U", r)
}
switch {
case key[word] > itemKeyword: