From 13221bfc3c381215e2efb133f0c6f104519ffc03 Mon Sep 17 00:00:00 2001 From: thirdkeyword Date: Wed, 6 Mar 2024 17:46:12 +0800 Subject: [PATCH] fix some typos Signed-off-by: thirdkeyword --- common/hugo/hugo.go | 2 +- common/paths/pathparser.go | 2 +- hugolib/doctree/nodeshifttree.go | 2 +- identity/identity.go | 2 +- markup/blackfriday/anchors.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/hugo/hugo.go b/common/hugo/hugo.go index be43e2a38..f225d730f 100644 --- a/common/hugo/hugo.go +++ b/common/hugo/hugo.go @@ -379,7 +379,7 @@ func DeprecateLevel(item, alternative, version string, level logg.Level) { loggers.Log().Logger().WithLevel(level).WithField(loggers.FieldNameCmd, "deprecated").Logf(msg) } -// We ususally do about one minor version a month. +// We usually do about one minor version a month. // We want people to run at least the current and previous version without any warnings. // We want people who don't update Hugo that often to see the warnings and errors before we remove the feature. func deprecationLogLevelFromVersion(ver string) logg.Level { diff --git a/common/paths/pathparser.go b/common/paths/pathparser.go index 20f5ee30d..14f65e12a 100644 --- a/common/paths/pathparser.go +++ b/common/paths/pathparser.go @@ -313,7 +313,7 @@ func (p *Path) norm(s string) string { return s } -// IdentifierBase satifies identity.Identity. +// IdentifierBase satisfies identity.Identity. func (p *Path) IdentifierBase() string { return p.Base() } diff --git a/hugolib/doctree/nodeshifttree.go b/hugolib/doctree/nodeshifttree.go index 1c1175305..0e4f68554 100644 --- a/hugolib/doctree/nodeshifttree.go +++ b/hugolib/doctree/nodeshifttree.go @@ -57,7 +57,7 @@ type ( ) // NodeShiftTree is the root of a tree that can be shaped using the Shape method. -// Note that multipled shapes of the same tree is meant to be used concurrently, +// Note that multiplied shapes of the same tree is meant to be used concurrently, // so use the applicable locking when needed. type NodeShiftTree[T any] struct { tree *radix.Tree diff --git a/identity/identity.go b/identity/identity.go index c799759df..f924f335c 100644 --- a/identity/identity.go +++ b/identity/identity.go @@ -355,7 +355,7 @@ func (im *identityManager) String() string { } func (im *identityManager) forEeachIdentity(fn func(id Identity) bool) bool { - // The absense of a lock here is debliberate. This is currently opnly used on server reloads + // The absence of a lock here is deliberate. This is currently only used on server reloads // in a single-threaded context. for id := range im.ids { if fn(id) { diff --git a/markup/blackfriday/anchors.go b/markup/blackfriday/anchors.go index 7b0b41854..e00c24c9a 100644 --- a/markup/blackfriday/anchors.go +++ b/markup/blackfriday/anchors.go @@ -11,7 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// Package blackfriday holds some compability functions for the old Blackfriday v1 Markdown engine. +// Package blackfriday holds some compatibility functions for the old Blackfriday v1 Markdown engine. package blackfriday import "unicode"