From: Neven Sajko Date: Sat, 10 Feb 2018 23:30:34 +0000 (+0100) Subject: sort: fix typo, was a mixup between identifiers 'unsorted' and 'data' X-Git-Tag: go1.11beta1~1172 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=15b63eee96e8397d1d0752cf3416ce002218fd35;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/sort/sort_test.go b/src/sort/sort_test.go index 092135e588..4516f05e16 100644 --- a/src/sort/sort_test.go +++ b/src/sort/sort_test.go @@ -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))