mirror of
https://github.com/golang/go.git
synced 2025-11-11 22:21:06 +00:00
strings: delete Runes, Bytes
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev https://golang.org/cl/224062
This commit is contained in:
parent
dfaa6eaa76
commit
9750adbbad
65 changed files with 239 additions and 310 deletions
|
|
@ -296,7 +296,7 @@ var errorWriterTests = []errorWriterTest{
|
|||
func TestWriteErrors(t *testing.T) {
|
||||
for _, w := range errorWriterTests {
|
||||
buf := NewWriter(w)
|
||||
_, e := buf.Write(strings.Bytes("hello world"))
|
||||
_, e := buf.Write([]byte("hello world"))
|
||||
if e != nil {
|
||||
t.Errorf("Write hello to %v: %v", w, e)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue