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.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/bench/regex-dna.go b/test/bench/regex-dna.go
index 9d56830b3..22de2c6aa 100644
--- a/test/bench/regex-dna.go
+++ b/test/bench/regex-dna.go
@@ -40,7 +40,6 @@ import (
"io/ioutil"
"os"
"regexp"
- "strings"
)
var variants = []string{
@@ -101,7 +100,7 @@ func main() {
fmt.Printf("%s %d\n", s, countMatches(s, bytes))
}
for _, sub := range substs {
- bytes = regexp.MustCompile(sub.pat).ReplaceAll(bytes, strings.Bytes(sub.repl))
+ bytes = regexp.MustCompile(sub.pat).ReplaceAll(bytes, []byte(sub.repl))
}
fmt.Printf("\n%d\n%d\n%d\n", ilen, clen, len(bytes))
}