Skip to content

Commit db39519

Browse files
committed
Rename
Per #83 (comment)
1 parent 3f26c13 commit db39519

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

benchmark_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ func BenchmarkRuneWidth768EastAsian(b *testing.B) {
7272
func benchString1Width(b *testing.B, eastAsianWidth bool, start, stop rune, want int) int {
7373
b.Helper()
7474
n := 0
75-
strings := make([]string, stop-start)
75+
ss := make([]string, stop-start)
7676
for r := start; r < stop; r++ {
77-
strings = append(strings, string(r))
77+
ss = append(ss, string(r))
7878
}
7979

8080
b.Run("regular", func(b *testing.B) {
@@ -85,7 +85,7 @@ func benchString1Width(b *testing.B, eastAsianWidth bool, start, stop rune, want
8585
b.ReportAllocs()
8686
for i := 0; i < b.N; i++ {
8787
got = n
88-
for _, s := range strings {
88+
for _, s := range ss {
8989
n += c.StringWidth(s)
9090
}
9191
got = n - got
@@ -104,7 +104,7 @@ func benchString1Width(b *testing.B, eastAsianWidth bool, start, stop rune, want
104104
b.ReportAllocs()
105105
for i := 0; i < b.N; i++ {
106106
got = n
107-
for _, s := range strings {
107+
for _, s := range ss {
108108
n += c.StringWidth(s)
109109
}
110110
got = n - got

0 commit comments

Comments
 (0)