File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ func TestPerfsprint() {
2929 fmt .Sprint (ui ) // want "fmt.Sprint can be replaced with faster strconv.FormatUint"
3030 fmt .Sprintf ("%x" , []byte {'a' }) // want "fmt.Sprintf can be replaced with faster hex.EncodeToString"
3131 fmt .Errorf ("hello" ) // want "fmt.Errorf can be replaced with errors.New"
32+ fmt .Sprintf ("Hello %s" , s ) // want "fmt.Sprintf can be replaced with string addition"
3233
3334 fmt .Sprint ("test" , 42 )
3435 fmt .Sprint (42 , 42 )
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ func TestPerfsprint2() {
3030 fmt .Sprint (ui )
3131 fmt .Sprintf ("%x" , []byte {'a' }) // want "fmt.Sprintf can be replaced with faster hex.EncodeToString"
3232 fmt .Errorf ("hello" ) // want "fmt.Errorf can be replaced with errors.New"
33+ fmt .Sprintf ("Hello %s" , s ) // want "fmt.Sprintf can be replaced with string addition"
3334
3435 fmt .Sprint ("test" , 42 )
3536 fmt .Sprint (42 , 42 )
You can’t perform that action at this time.
0 commit comments