Skip to content

Commit

Permalink
all: Fix spelling
Browse files Browse the repository at this point in the history
And some other minor issues.
  • Loading branch information
bep committed Aug 7, 2017
1 parent 4b54fb0 commit 46ac745
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion create/content_template_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type ArchetypeFileData struct {
}

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 }}
Expand Down
4 changes: 2 additions & 2 deletions hugolib/handler_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ type Handler interface {
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
}
Expand Down
1 change: 0 additions & 1 deletion hugolib/hugo_sites.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ func (h *HugoSites) createMissingPages() error {
}

if !foundTaxonomyTermsPage {
foundTaxonomyTermsPage = true
n := s.newTaxonomyTermsPage(plural)
s.Pages = append(s.Pages, n)
newPages = append(newPages, n)
Expand Down
2 changes: 1 addition & 1 deletion media/mediaType_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestFromTypeString(t *testing.T) {
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)

}
Expand Down
2 changes: 1 addition & 1 deletion output/outputFormat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func TestGetFormatByFilename(t *testing.T) {
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)

}
Expand Down
2 changes: 1 addition & 1 deletion releaser/releaser.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (r *ReleaseHandler) Run() error {
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 {
Expand Down
2 changes: 1 addition & 1 deletion tpl/internal/templatefuncsRegistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ type TemplateFuncMethodMapping struct {
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.
Expand Down
2 changes: 1 addition & 1 deletion tpl/math/math.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (ns *Namespace) Mul(a, b interface{}) (interface{}, error) {
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, '-')
}
Expand Down

0 comments on commit 46ac745

Please sign in to comment.