This commit is contained in:
gobwas 2016-02-22 23:18:25 +03:00
parent 6cb2c11fd7
commit ea3a6f712d
1 changed files with 2 additions and 2 deletions

View File

@ -87,11 +87,11 @@ func (self BTree) Match(s string) bool {
// defer func() { // defer func() {
// releaseSegments(segments) // releaseSegments(segments)
// }() // }()
var segments []int // var segments []int
for offset < limit { for offset < limit {
// search for matching part in substring // 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 { if index == -1 {
return false return false
} }