Commit 15b63eee authored by Neven Sajko's avatar Neven Sajko Committed by Brad Fitzpatrick

sort: fix typo, was a mixup between identifiers 'unsorted' and 'data'

Change-Id: If9ad8ae663f007efe43cc35631713565fa754e93
Reviewed-on: https://go-review.googlesource.com/93237
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent b3be2f4d
......@@ -194,7 +194,7 @@ func BenchmarkSortString1K_Slice(b *testing.B) {
func BenchmarkStableString1K(b *testing.B) {
b.StopTimer()
unsorted := make([]string, 1<<10)
for i := 0; i < len(data); i++ {
for i := range unsorted {
unsorted[i] = strconv.Itoa(i ^ 0x2cc)
}
data := make([]string, len(unsorted))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment