Skip to content

Commit a2f0103

Browse files
committed
fixup! feature: optimize fmt.Sprintf("%x" to strconv.FormatUint
1 parent e1fb0af commit a2f0103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

analyzer/testdata/src/p/p.go.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func positive() {
119119
strconv.FormatUint(ui64, 10) // want "fmt.Sprintf can be replaced with faster strconv.FormatUint"
120120
strconv.FormatUint(ui64, 10) // want "fmt.Sprintf can be replaced with faster strconv.FormatUint"
121121
strconv.FormatUint(ui64, 16) // want "fmt.Sprintf can be replaced with faster strconv.FormatUint"
122-
fmt.Sprintf("%x", uint(42)) // want "fmt.Sprintf can be replaced with faster strconv.FormatUint"
122+
strconv.FormatUint(uint64(uint(42)), 16) // want "fmt.Sprintf can be replaced with faster strconv.FormatUint"
123123
strconv.FormatUint(ui64, 10) // want "fmt.Sprint can be replaced with faster strconv.FormatUint"
124124
strconv.FormatUint(uint64(42), 10) // want "fmt.Sprintf can be replaced with faster strconv.FormatUint"
125125
strconv.FormatUint(uint64(42), 10) // want "fmt.Sprintf can be replaced with faster strconv.FormatUint"

0 commit comments

Comments
 (0)