diff options
Diffstat (limited to 'parser/pageparser/pageparser_intro_test.go')
-rw-r--r-- | parser/pageparser/pageparser_intro_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parser/pageparser/pageparser_intro_test.go b/parser/pageparser/pageparser_intro_test.go index bfd19c250..850254ac7 100644 --- a/parser/pageparser/pageparser_intro_test.go +++ b/parser/pageparser/pageparser_intro_test.go @@ -91,7 +91,7 @@ func collect(input []byte, skipFrontMatter bool, stateStart stateFunc) (items [] for { item := t.Next() items = append(items, item) - if item.Typ == tEOF || item.Typ == tError { + if item.Type == tEOF || item.Type == tError { break } } @@ -104,7 +104,7 @@ func equal(i1, i2 []Item) bool { return false } for k := range i1 { - if i1[k].Typ != i2[k].Typ { + if i1[k].Type != i2[k].Type { return false } if !reflect.DeepEqual(i1[k].Val, i2[k].Val) { |