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
|
|
@ -6,7 +6,7 @@ package strings_test
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"os"
|
||||
"io"
|
||||
"reflect"
|
||||
"strconv"
|
||||
. "strings"
|
||||
|
|
@ -759,7 +759,7 @@ func TestReadByte(t *testing.T) {
|
|||
var res bytes.Buffer
|
||||
for {
|
||||
b, e := reader.ReadByte()
|
||||
if e == os.EOF {
|
||||
if e == io.EOF {
|
||||
break
|
||||
}
|
||||
if e != nil {
|
||||
|
|
@ -799,7 +799,7 @@ func TestReadRune(t *testing.T) {
|
|||
res := ""
|
||||
for {
|
||||
r, z, e := reader.ReadRune()
|
||||
if e == os.EOF {
|
||||
if e == io.EOF {
|
||||
break
|
||||
}
|
||||
if e != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue