diff --git a/test/bench/reverse-complement.go b/test/bench/reverse-complement.go index 60e14dba8c1..a685e43b5b0 100644 --- a/test/bench/reverse-complement.go +++ b/test/bench/reverse-complement.go @@ -86,9 +86,9 @@ func main() { } // This loop is the bottleneck. - for r := 0; r < len(line); r++ { + for _, c := range line { w--; - buf[w] = complement[line[r]]; + buf[w] = complement[c]; } }