diff options
Diffstat (limited to 'parser')
-rw-r--r-- | parser/metadecoders/decoder.go | 2 | ||||
-rw-r--r-- | parser/pageparser/pagelexer.go | 2 | ||||
-rw-r--r-- | parser/pageparser/pagelexer_intro.go | 2 | ||||
-rw-r--r-- | parser/pageparser/pagelexer_shortcode.go | 2 | ||||
-rw-r--r-- | parser/pageparser/pageparser.go | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/parser/metadecoders/decoder.go b/parser/metadecoders/decoder.go index 7fc8330af..131d6f39b 100644 --- a/parser/metadecoders/decoder.go +++ b/parser/metadecoders/decoder.go @@ -105,7 +105,7 @@ func (d Decoder) UnmarshalStringTo(data string, typ interface{}) (interface{}, e case float64: return cast.ToFloat64E(data) default: - return nil, errors.Errorf("unmarshal: %T not supportedd", typ) + return nil, errors.Errorf("unmarshal: %T not supported", typ) } } diff --git a/parser/pageparser/pagelexer.go b/parser/pageparser/pagelexer.go index c360642c4..266fb50f5 100644 --- a/parser/pageparser/pagelexer.go +++ b/parser/pageparser/pagelexer.go @@ -426,7 +426,7 @@ func lexMainSection(l *pageLexer) stateFunc { } if l.isInHTMLComment { - return lexEndFromtMatterHTMLComment + return lexEndFrontMatterHTMLComment } // Fast forward as far as possible. diff --git a/parser/pageparser/pagelexer_intro.go b/parser/pageparser/pagelexer_intro.go index 961528ef2..6e4617998 100644 --- a/parser/pageparser/pagelexer_intro.go +++ b/parser/pageparser/pagelexer_intro.go @@ -56,7 +56,7 @@ LOOP: return lexMainSection } -func lexEndFromtMatterHTMLComment(l *pageLexer) stateFunc { +func lexEndFrontMatterHTMLComment(l *pageLexer) stateFunc { l.isInHTMLComment = false right := l.index(htmlCommentEnd) if right == -1 { diff --git a/parser/pageparser/pagelexer_shortcode.go b/parser/pageparser/pagelexer_shortcode.go index 774a8f690..5b4e0ae55 100644 --- a/parser/pageparser/pagelexer_shortcode.go +++ b/parser/pageparser/pagelexer_shortcode.go @@ -185,7 +185,7 @@ Loop: l.backup() break Loop } else if openQuoteFound { - // the coming quoute is inside + // the coming quote is inside escapedInnerQuoteFound = true escapedQuoteState = 1 } diff --git a/parser/pageparser/pageparser.go b/parser/pageparser/pageparser.go index 19d068ece..7bfcfd698 100644 --- a/parser/pageparser/pageparser.go +++ b/parser/pageparser/pageparser.go @@ -172,7 +172,7 @@ func (t *Iterator) PeekWalk(walkFn func(item Item) bool) { } } -// Consume is a convencience method to consume the next n tokens, +// Consume is a convenience method to consume the next n tokens, // but back off Errors and EOF. func (t *Iterator) Consume(cnt int) { for i := 0; i < cnt; i++ { |