summaryrefslogtreecommitdiff
path: root/test/bench/regex-dna.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/bench/regex-dna.go')
-rw-r--r--test/bench/regex-dna.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bench/regex-dna.go b/test/bench/regex-dna.go
index 637cb1454..f42efc6d4 100644
--- a/test/bench/regex-dna.go
+++ b/test/bench/regex-dna.go
@@ -106,10 +106,10 @@ func main() {
// Delete the comment lines and newlines
bytes = compile("(>[^\n]+)?\n").ReplaceAll(bytes, []byte{});
clen := len(bytes);
- for i, s := range variants {
+ for _, s := range variants {
fmt.Printf("%s %d\n", s, countMatches(s, bytes));
}
- for i, sub := range substs {
+ for _, sub := range substs {
bytes = compile(sub.pat).ReplaceAll(bytes, strings.Bytes(sub.repl));
}
fmt.Printf("\n%d\n%d\n%d\n", ilen, clen, len(bytes));