ref: 46ac7453743f0bd889d0be3505bde2521f9f0336
parent: 4b54fb07018d5ed66ef82b6a53462e1b15c85d86
author: Bjørn Erik Pedersen <[email protected]>
date: Mon Aug 7 16:19:24 EDT 2017
all: Fix spelling And some other minor issues.
--- a/create/content_template_handler.go
+++ b/create/content_template_handler.go
@@ -49,7 +49,7 @@
}
const (
- // ArchetypeTemplateTemplate is used as inital template when adding an archetype template.
+ // ArchetypeTemplateTemplate is used as initial template when adding an archetype template.
ArchetypeTemplateTemplate = `---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
--- a/hugolib/handler_base.go
+++ b/hugolib/handler_base.go
@@ -25,12 +25,12 @@
Extensions() []string
}
-// Handle identifies functionality assosiated with certain file extentions.
+// Handle identifies functionality associated with certain file extensions.
type Handle struct {
extensions []string
}
-// Extensions returns a list of extentions.
+// Extensions returns a list of extensions.
func (h Handle) Extensions() []string {
return h.extensions
}
--- a/hugolib/hugo_sites.go
+++ b/hugolib/hugo_sites.go
@@ -381,7 +381,6 @@
}
if !foundTaxonomyTermsPage {
- foundTaxonomyTermsPage = true
n := s.newTaxonomyTermsPage(plural)
s.Pages = append(s.Pages, n)
newPages = append(newPages, n)
--- a/media/mediaType_test.go
+++ b/media/mediaType_test.go
@@ -73,7 +73,7 @@
require.NoError(t, err)
require.Equal(t, Type{MainType: "application", SubType: "custom", Suffix: "pdf", Delimiter: defaultDelimiter}, f)
- f, err = FromString("noslash")
+ _, err = FromString("noslash")
require.Error(t, err)
}
--- a/output/outputFormat_test.go
+++ b/output/outputFormat_test.go
@@ -127,7 +127,7 @@
f, found = formats.FromFilename("my.nex")
require.True(t, found)
require.Equal(t, noExt, f)
- f, found = formats.FromFilename("my.css")
+ _, found = formats.FromFilename("my.css")
require.False(t, found)
}
--- a/releaser/releaser.go
+++ b/releaser/releaser.go
@@ -121,7 +121,7 @@
var changeLogFromTag string
if newVersion.PatchLevel == 0 {
- // There may have been patch releases inbetween, so set the tag explicitly.
+ // There may have been patch releases between, so set the tag explicitly.
changeLogFromTag = "v" + newVersion.Prev().String()
exists, _ := tagExists(changeLogFromTag)
if !exists {
--- a/tpl/internal/templatefuncsRegistry.go
+++ b/tpl/internal/templatefuncsRegistry.go
@@ -84,7 +84,7 @@
Method interface{}
// Any template funcs aliases. This is mainly motivated by keeping
- // backwards compability, but some new template funcs may also make
+ // backwards compatibility, but some new template funcs may also make
// sense to give short and snappy aliases.
// Note that these aliases are global and will be merged, so the last
// key will win.
--- a/tpl/math/math.go
+++ b/tpl/math/math.go
@@ -92,7 +92,7 @@
return DoArithmetic(a, b, '*')
}
-// Sub substracts two numbers.
+// Sub subtracts two numbers.
func (ns *Namespace) Sub(a, b interface{}) (interface{}, error) {
return DoArithmetic(a, b, '-')
}