From ea3a6f712d4f915b19192b7b09b5e64186798e2a Mon Sep 17 00:00:00 2001 From: gobwas Date: Mon, 22 Feb 2016 23:18:25 +0300 Subject: [PATCH] t --- match/btree.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/match/btree.go b/match/btree.go index aa62e59..af6a8fb 100644 --- a/match/btree.go +++ b/match/btree.go @@ -87,11 +87,11 @@ func (self BTree) Match(s string) bool { // defer func() { // releaseSegments(segments) // }() - var segments []int + // var segments []int for offset < limit { // search for matching part in substring - index, segments := self.Value.Index(s[offset:limit], segments[:0]) + index, segments := self.Value.Index(s[offset:limit], nil) if index == -1 { return false }