mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
c2049d2dfe
commit
eb6929299b
166 changed files with 1139 additions and 1238 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue