Merge pull request #496 from noscript/master

Go 1.3 compatibility
This commit is contained in:
Junegunn Choi 2016-02-16 18:48:39 +09:00
commit 45108ddd53

View File

@ -200,7 +200,7 @@ func (m *Matcher) scan(request MatchRequest) (*Merger, bool) {
} }
partialResults := make([][]*Item, numSlices) partialResults := make([][]*Item, numSlices)
for range slices { for _, _ = range slices {
partialResult := <-resultChan partialResult := <-resultChan
partialResults[partialResult.index] = partialResult.matches partialResults[partialResult.index] = partialResult.matches
} }