Correct typos in Go comments

This commit is contained in:
Oleksandr Redko
2023-02-18 22:47:35 +02:00
committed by Bjørn Erik Pedersen
parent 17e60b77e1
commit 36ce3a4a9d
26 changed files with 35 additions and 35 deletions

View File

@@ -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))
}