aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser
diff options
context:
space:
mode:
authorPhil Davis <[email protected]>2020-12-16 16:56:32 +0545
committerGitHub <[email protected]>2020-12-16 12:11:32 +0100
commit04b89857e104ac7dcbf9fc65d8d4f1a1178123e6 (patch)
tree585bf761f0a1cfc69dffcd8afd22e94ca9da7c07 /parser
parent21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54 (diff)
downloadhugo-04b89857e104ac7dcbf9fc65d8d4f1a1178123e6.tar.gz
hugo-04b89857e104ac7dcbf9fc65d8d4f1a1178123e6.zip
all: Fix minor typos
Diffstat (limited to 'parser')
-rw-r--r--parser/metadecoders/decoder.go2
-rw-r--r--parser/pageparser/pagelexer.go2
-rw-r--r--parser/pageparser/pagelexer_intro.go2
-rw-r--r--parser/pageparser/pagelexer_shortcode.go2
-rw-r--r--parser/pageparser/pageparser.go2
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++ {