all: Fix minor typos

This commit is contained in:
Phil Davis
2020-12-16 16:56:32 +05:45
committed by GitHub
parent 21fa1e86f2
commit 04b89857e1
67 changed files with 124 additions and 124 deletions

View File

@@ -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)
}
}

View File

@@ -426,7 +426,7 @@ func lexMainSection(l *pageLexer) stateFunc {
}
if l.isInHTMLComment {
return lexEndFromtMatterHTMLComment
return lexEndFrontMatterHTMLComment
}
// Fast forward as far as possible.

View File

@@ -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 {

View File

@@ -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
}

View File

@@ -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++ {