diff options
Diffstat (limited to 'src/pattern.go')
| -rw-r--r-- | src/pattern.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pattern.go b/src/pattern.go index 56dc830f..4a7a87a6 100644 --- a/src/pattern.go +++ b/src/pattern.go @@ -337,7 +337,7 @@ func (p *Pattern) MatchItem(item *Item, withPos bool, slab *util.Slab) (*Result, func (p *Pattern) basicMatch(item *Item, withPos bool, slab *util.Slab) (Offset, int, *[]int) { var input []Token if len(p.nth) == 0 { - input = []Token{Token{text: &item.text, prefixLength: 0}} + input = []Token{{text: &item.text, prefixLength: 0}} } else { input = p.transformInput(item) } @@ -350,7 +350,7 @@ func (p *Pattern) basicMatch(item *Item, withPos bool, slab *util.Slab) (Offset, func (p *Pattern) extendedMatch(item *Item, withPos bool, slab *util.Slab) ([]Offset, int, *[]int) { var input []Token if len(p.nth) == 0 { - input = []Token{Token{text: &item.text, prefixLength: 0}} + input = []Token{{text: &item.text, prefixLength: 0}} } else { input = p.transformInput(item) } |
