Skip to content

Commit 0672b5c

Browse files
authored
all: Fix typos
1 parent e309f82 commit 0672b5c

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

output/outputFormat.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ type Format struct {
7272
// Setting this will make this output format control the value of
7373
// .Permalink and .RelPermalink for a rendered Page.
7474
// If not set, these values will point to the main (first) output format
75-
// configured. That is probably the behaviour you want in most situations,
75+
// configured. That is probably the behavior you want in most situations,
7676
// as you probably don't want to link back to the RSS version of a page, as an
7777
// example. AMP would, however, be a good example of an output format where this
78-
// behaviour is wanted.
78+
// behavior is wanted.
7979
Permalinkable bool `json:"permalinkable"`
8080

8181
// Setting this to a non-zero value will be used as the first sort criteria.

resources/internal/resourcepaths.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/gohugoio/hugo/common/paths"
2222
)
2323

24-
// ResourcePaths holds path information for a resouce.
24+
// ResourcePaths holds path information for a resource.
2525
// All directories in here have Unix-style slashes, with leading slash, but no trailing slash.
2626
// Empty directories are represented with an empty string.
2727
type ResourcePaths struct {

resources/page/permalinks.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"github.com/gohugoio/hugo/resources/kinds"
3131
)
3232

33-
// PermalinkExpander holds permalin mappings per section.
33+
// PermalinkExpander holds permalink mappings per section.
3434
type PermalinkExpander struct {
3535
// knownPermalinkAttributes maps :tags in a permalink specification to a
3636
// function which, given a page and the tag, returns the resulting string
@@ -422,7 +422,7 @@ func DecodePermalinksConfig(m map[string]any) (map[string]map[string]string, err
422422
// [permalinks]
423423
// key = '...'
424424

425-
// To sucessfully be backward compatible, "default" patterns need to be set for both page and term
425+
// To successfully be backward compatible, "default" patterns need to be set for both page and term
426426
permalinksConfig[kinds.KindPage][k] = v
427427
permalinksConfig[kinds.KindTerm][k] = v
428428

resources/page/site.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"github.com/gohugoio/hugo/navigation"
3030
)
3131

32-
// Site represents a site. There can be multople sites in a multilingual setup.
32+
// Site represents a site. There can be multiple sites in a multilingual setup.
3333
type Site interface {
3434
// Returns the Language configured for this Site.
3535
Language() *langs.Language

resources/resource.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ type ResourceSourceDescriptor struct {
8585
// Set when its known up front, else it's resolved from the target filename.
8686
MediaType media.Type
8787

88-
// Used to track depenencies (e.g. imports). May be nil if that's of no concern.
88+
// Used to track dependencies (e.g. imports). May be nil if that's of no concern.
8989
DependencyManager identity.Manager
9090

9191
// A shared identity for this resource and all its clones.

resources/resource_spec.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ type Spec struct {
126126
*SpecCommon
127127
}
128128

129-
// The parts of Spec that's comoon for all sites.
129+
// The parts of Spec that's common for all sites.
130130
type SpecCommon struct {
131131
incr identity.Incrementer
132132
ResourceCache *ResourceCache

tpl/collections/collections.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ func (ns *Namespace) Seq(args ...any) ([]int, error) {
572572
return seq, nil
573573
}
574574

575-
// Shuffle returns list l in a randomised order.
575+
// Shuffle returns list l in a randomized order.
576576
func (ns *Namespace) Shuffle(l any) (any, error) {
577577
if l == nil {
578578
return nil, errors.New("both count and seq must be provided")

tpl/fmt/fmt.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (ns *Namespace) Print(args ...any) string {
4747
return _fmt.Sprint(args...)
4848
}
4949

50-
// Printf returns string representation of args formatted with the layouut in format.
50+
// Printf returns string representation of args formatted with the layout in format.
5151
func (ns *Namespace) Printf(format string, args ...any) string {
5252
return _fmt.Sprintf(format, args...)
5353
}
@@ -87,12 +87,12 @@ func (ns *Namespace) Warnidf(id, format string, args ...any) string {
8787
return ""
8888
}
8989

90-
// Warnmf is epxermimental and subject to change at any time.
90+
// Warnmf is experimental and subject to change at any time.
9191
func (ns *Namespace) Warnmf(m any, format string, args ...any) string {
9292
return ns.logmf(ns.logger.Warn(), m, format, args...)
9393
}
9494

95-
// Errormf is epxermimental and subject to change at any time.
95+
// Errormf is experimental and subject to change at any time.
9696
func (ns *Namespace) Errormf(m any, format string, args ...any) string {
9797
return ns.logmf(ns.logger.Error(), m, format, args...)
9898
}

tpl/internal/resourcehelpers/helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func ResolveIfFirstArgIsString(args []any) (resources.ResourceTransformer, strin
3838
return v2, v1, ok2
3939
}
4040

41-
// This roundabout way of doing it is needed to get both pipeline behaviour and options as arguments.
41+
// This roundabout way of doing it is needed to get both pipeline behavior and options as arguments.
4242
func ResolveArgs(args []any) (resources.ResourceTransformer, map[string]any, error) {
4343
if len(args) == 0 {
4444
return nil, nil, errors.New("no Resource provided in transformation")

watcher/filenotify/poller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func (r *recording) record(filename string) error {
201201
r.FileInfo = fi
202202

203203
// If fi is a dir, we watch the files inside that directory (not recursively).
204-
// This matches the behaviour of fsnotity.
204+
// This matches the behavior of fsnotity.
205205
if fi.IsDir() {
206206
f, err := os.Open(filename)
207207
if err != nil {

watchtestscripts.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
trap exit SIGINT
44

55
# I use "run tests on save" in my editor.
6-
# Unfortantly, changes to text files does not trigger this. Hence this workaround.
6+
# Unfortunately, changes to text files does not trigger this. Hence this workaround.
77
while true; do find testscripts -type f -name "*.txt" | entr -pd touch main_test.go; done

0 commit comments

Comments
 (0)