diff options
author | Oleksandr Redko <[email protected]> | 2023-02-18 22:47:35 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-03-02 16:32:32 +0100 |
commit | 36ce3a4a9d3933772085991c8636915ffd5cb3af (patch) | |
tree | e7eaf3e0ea689b227fe012eab7c0f16205d6cd8c /resources | |
parent | 17e60b77e15664ba37f5c0b911cf70c36d496d80 (diff) | |
download | hugo-36ce3a4a9d3933772085991c8636915ffd5cb3af.tar.gz hugo-36ce3a4a9d3933772085991c8636915ffd5cb3af.zip |
Correct typos in Go comments
Diffstat (limited to 'resources')
-rw-r--r-- | resources/page/page_kinds.go | 2 | ||||
-rw-r--r-- | resources/page/pages_prev_next.go | 2 | ||||
-rw-r--r-- | resources/page/site.go | 2 | ||||
-rw-r--r-- | resources/resource_transformers/js/options.go | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/resources/page/page_kinds.go b/resources/page/page_kinds.go index 719375f66..479859841 100644 --- a/resources/page/page_kinds.go +++ b/resources/page/page_kinds.go @@ -23,7 +23,7 @@ const ( KindHome = "home" KindSection = "section" - // Note tha before Hugo 0.73 these were confusingly named + // Note that before Hugo 0.73 these were confusingly named // taxonomy (now: term) // taxonomyTerm (now: taxonomy) KindTaxonomy = "taxonomy" diff --git a/resources/page/pages_prev_next.go b/resources/page/pages_prev_next.go index 753a3e415..b8084bad9 100644 --- a/resources/page/pages_prev_next.go +++ b/resources/page/pages_prev_next.go @@ -22,7 +22,7 @@ func (p Pages) Next(cur Page) Page { return p[x-1] } -// Prev returns the previous page reletive to the given +// Prev returns the previous page relative to the given func (p Pages) Prev(cur Page) Page { x := searchPage(cur, p) diff --git a/resources/page/site.go b/resources/page/site.go index 90fbd5551..47bd770ef 100644 --- a/resources/page/site.go +++ b/resources/page/site.go @@ -62,7 +62,7 @@ type Site interface { // Returns the BaseURL for this Site. BaseURL() template.URL - // Retuns a taxonomy map. + // Returns a taxonomy map. Taxonomies() TaxonomyList // Returns the last modification date of the content. diff --git a/resources/resource_transformers/js/options.go b/resources/resource_transformers/js/options.go index ff5cca458..8b40648e7 100644 --- a/resources/resource_transformers/js/options.go +++ b/resources/resource_transformers/js/options.go @@ -164,7 +164,7 @@ func resolveComponentInAssets(fs afero.Fs, impPath string) *hugofs.FileMeta { var m *hugofs.FileMeta // We need to check if this is a regular file imported without an extension. - // There may be ambigous situations where both foo.js and foo/index.js exists. + // There may be ambiguous situations where both foo.js and foo/index.js exists. // This import order is in line with both how Node and ESBuild's native // import resolver works. |