Skip to content

Commit

Permalink
net/rpc/jsonrpc: use strings.Builder
Browse files Browse the repository at this point in the history
Change-Id: I251f734adbaf83aa03e3f4f37add4e116f5af093
Reviewed-on: https://go-review.googlesource.com/c/go/+/428271
Reviewed-by: Ian Lance Taylor <[email protected]>
Reviewed-by: Michael Knyszek <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
  • Loading branch information
cuiweixie authored and gopherbot committed Sep 7, 2022
1 parent 2b8f214 commit bfadd78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/net/rpc/jsonrpc/all_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
package jsonrpc

import (
"bytes"
"encoding/json"
"errors"
"fmt"
Expand Down Expand Up @@ -262,7 +261,7 @@ func TestMalformedOutput(t *testing.T) {
}

func TestServerErrorHasNullResult(t *testing.T) {
var out bytes.Buffer
var out strings.Builder
sc := NewServerCodec(struct {
io.Reader
io.Writer
Expand Down

0 comments on commit bfadd78

Please sign in to comment.