summaryrefslogtreecommitdiffstats
path: root/hugolib/pagecollections.go
diff options
context:
space:
mode:
authorOleksandr Redko <oleksandr.red+github@gmail.com>2023-02-18 22:47:35 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-03-02 16:32:32 +0100
commit36ce3a4a9d3933772085991c8636915ffd5cb3af (patch)
treee7eaf3e0ea689b227fe012eab7c0f16205d6cd8c /hugolib/pagecollections.go
parent17e60b77e15664ba37f5c0b911cf70c36d496d80 (diff)
Correct typos in Go comments
Diffstat (limited to 'hugolib/pagecollections.go')
-rw-r--r--hugolib/pagecollections.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/pagecollections.go b/hugolib/pagecollections.go
index 811fb6025..0d901d6b2 100644
--- a/hugolib/pagecollections.go
+++ b/hugolib/pagecollections.go
@@ -209,7 +209,7 @@ func (c *PageCollections) getSectionOrPage(ref string) (*contentNode, string) {
return m.getPage(s, name), name
}
-// For Ref/Reflink and .Site.GetPage do simple name lookups for the potentially ambigous myarticle.md and /myarticle.md,
+// For Ref/Reflink and .Site.GetPage do simple name lookups for the potentially ambiguous myarticle.md and /myarticle.md,
// but not when we get ./myarticle*, section/myarticle.
func shouldDoSimpleLookup(ref string) bool {
if ref[0] == '.' {
@@ -325,7 +325,7 @@ func (c *PageCollections) getContentNode(context page.Page, isReflink bool, ref
return nil, nil
}
- // Ref/relref supports this potentially ambigous lookup.
+ // Ref/relref supports this potentially ambiguous lookup.
return getByName(path.Base(name))
}