Fixed misspelled words
authorAurken Bilbao <aurken@pm.me>
Thu, 20 Aug 2020 12:32:40 +0000 (14:32 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 20 Aug 2020 20:34:35 +0000 (22:34 +0200)
hugolib/pages_capture.go
markup/asciidocext/convert_test.go
markup/converter/hooks/hooks.go

index 020e243c5058786568e2737ed46f2e3cca4104e7..ddb4bc4951cf51d7cce11155d8741951c5650722 100644 (file)
@@ -100,7 +100,7 @@ type pagesCollector struct {
 // That is, if a front matter cascade section is removed, added or edited.
 // If this is the case we must re-evaluate its descendants.
 func (c *pagesCollector) isCascadingEdit(dir contentDirKey) (bool, string) {
-       // This is eiter a section or a taxonomy node. Find it.
+       // This is either a section or a taxonomy node. Find it.
        prefix := cleanTreeKey(dir.dirname)
 
        section := "/"
index dc9d76c07767c5049fdfae0596c30a8f8ebae826..22ac8e557ad7154b334b766ec98df46de263f7b0 100644 (file)
@@ -90,7 +90,7 @@ func TestAsciidoctorDisallowedArgs(t *testing.T) {
        cfg := viper.New()
        mconf := markup_config.Default
        mconf.AsciidocExt.Backend = "disallowed-backend"
-       mconf.AsciidocExt.Extensions = []string{"disallowed-extention"}
+       mconf.AsciidocExt.Extensions = []string{"disallowed-extension"}
        mconf.AsciidocExt.Attributes = map[string]string{"outdir": "disallowed-attribute"}
        mconf.AsciidocExt.SafeMode = "disallowed-safemode"
        mconf.AsciidocExt.FailureLevel = "disallowed-failurelevel"
index ab26a6f1ab14260b96e056ea23cbfd0bc39cdafb..622d503ef05a83551d621995535aab0cbc3a28fa 100644 (file)
@@ -49,7 +49,7 @@ type HeadingContext interface {
 
 // HeadingRenderer describes a uniquely identifiable rendering hook.
 type HeadingRenderer interface {
-       // Render writes the renderered content to w using the data in w.
+       // Render writes the rendered content to w using the data in w.
        RenderHeading(w io.Writer, ctx HeadingContext) error
        identity.Provider
 }