summaryrefslogtreecommitdiff
path: root/test/bench/regex-dna.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-09-15 12:42:24 -0700
committerRuss Cox <rsc@golang.org>2009-09-15 12:42:24 -0700
commite6a328bbdc8f5cad199cda53dab7d310874e06b5 (patch)
tree8e115ff2eb9c4f2040c2c1b69dc50de1d874981d /test/bench/regex-dna.go
parentcf9118ad0e6c9fd6defe78270ea8044c2ed89f28 (diff)
downloadgolang-e6a328bbdc8f5cad199cda53dab7d310874e06b5.tar.gz
last round: non-package code
R=r DELTA=127 (38 added, 3 deleted, 86 changed) OCL=34640 CL=34650
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));