diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2023-02-18 22:47:35 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-03-02 16:32:32 +0100 |
commit | 36ce3a4a9d3933772085991c8636915ffd5cb3af (patch) | |
tree | e7eaf3e0ea689b227fe012eab7c0f16205d6cd8c /hugolib/pagecollections.go | |
parent | 17e60b77e15664ba37f5c0b911cf70c36d496d80 (diff) |
Correct typos in Go comments
Diffstat (limited to 'hugolib/pagecollections.go')
-rw-r--r-- | hugolib/pagecollections.go | 4 |
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)) } |