src/pkg/[n-z]*: gofix -r error -force=error

R=golang-dev, bsiegert, iant
CC=golang-dev
https://golang.org/cl/5294074
This commit is contained in:
Russ Cox 2011-11-01 22:05:34 -04:00
parent c2049d2dfe
commit eb6929299b
166 changed files with 1139 additions and 1238 deletions

View file

@ -54,7 +54,7 @@ func (f *file) readLine() (s string, ok bool) {
if n >= 0 {
f.data = f.data[0 : ln+n]
}
if err == os.EOF {
if err == io.EOF {
f.atEOF = true
}
}
@ -62,7 +62,7 @@ func (f *file) readLine() (s string, ok bool) {
return
}
func open(name string) (*file, os.Error) {
func open(name string) (*file, error) {
fd, err := os.Open(name)
if err != nil {
return nil, err