mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
all: Fix minor typos
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -426,7 +426,7 @@ func lexMainSection(l *pageLexer) stateFunc {
|
||||
}
|
||||
|
||||
if l.isInHTMLComment {
|
||||
return lexEndFromtMatterHTMLComment
|
||||
return lexEndFrontMatterHTMLComment
|
||||
}
|
||||
|
||||
// Fast forward as far as possible.
|
||||
|
@@ -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 {
|
||||
|
@@ -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
|
||||
}
|
||||
|
@@ -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++ {
|
||||
|
Reference in New Issue
Block a user