From 5ff500023fa3182132e3df768be79f566ef7744d Mon Sep 17 00:00:00 2001 From: mask-pp Date: Fri, 4 Dec 2020 09:27:40 +0800 Subject: [PATCH] revort unnecessary change --- .gitignore | 1 - tree.go | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4fa88e2b..bdd50c95 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,3 @@ count.out test profile.out tmp.out -.idea diff --git a/tree.go b/tree.go index 28c6b1e4..03adb1e5 100644 --- a/tree.go +++ b/tree.go @@ -611,7 +611,7 @@ walk: // Outer loop for walking the tree if rb[0] != 0 { // Old rune not finished idxc := rb[0] - for i, c := range bytesconv.StringToBytes(n.indices) { + for i, c := range []byte(n.indices) { if c == idxc { // continue with child node n = n.children[i] @@ -643,7 +643,7 @@ walk: // Outer loop for walking the tree rb = shiftNRuneBytes(rb, off) idxc := rb[0] - for i, c := range bytesconv.StringToBytes(n.indices) { + for i, c := range []byte(n.indices) { // Lowercase matches if c == idxc { // must use a recursive approach since both the @@ -665,7 +665,7 @@ walk: // Outer loop for walking the tree rb = shiftNRuneBytes(rb, off) idxc := rb[0] - for i, c := range bytesconv.StringToBytes(n.indices) { + for i, c := range []byte(n.indices) { // Uppercase matches if c == idxc { // Continue with child node