mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkg
R=r, gri CC=golang-dev https://golang.org/cl/156115
This commit is contained in:
parent
aa4c638b7b
commit
9ac4449cb2
118 changed files with 308 additions and 308 deletions
|
|
@ -111,7 +111,7 @@ func empty(t *testing.T, testname string, buf *Buffer, s string, fub []byte) {
|
|||
if err != nil {
|
||||
t.Errorf(testname+" (empty 2): err should always be nil, found err == %s\n", err)
|
||||
}
|
||||
s = s[n:len(s)];
|
||||
s = s[n:];
|
||||
check(t, testname+" (empty 3)", buf, s);
|
||||
}
|
||||
|
||||
|
|
@ -228,7 +228,7 @@ func TestMixedReadsAndWrites(t *testing.T) {
|
|||
rlen := rand.Intn(len(data));
|
||||
fub := make([]byte, rlen);
|
||||
n, _ := buf.Read(fub);
|
||||
s = s[n:len(s)];
|
||||
s = s[n:];
|
||||
}
|
||||
empty(t, "TestMixedReadsAndWrites (2)", &buf, s, make([]byte, buf.Len()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue