diff options
author | Christian Oliff <[email protected]> | 2024-03-16 01:25:52 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2024-03-15 17:25:52 +0100 |
commit | 78178d0c2a10e7793a41f8f66b3a4a6e4f70ef7e (patch) | |
tree | 21d0d310785676b914035e5930e987540c494d8d /common | |
parent | 68d92ef9ddbb63340d71af0cb30e6fb7c4912c65 (diff) | |
download | hugo-78178d0c2a10e7793a41f8f66b3a4a6e4f70ef7e.tar.gz hugo-78178d0c2a10e7793a41f8f66b3a4a6e4f70ef7e.zip |
all: Typo fixes
Diffstat (limited to 'common')
-rw-r--r-- | common/paths/pathparser.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/common/paths/pathparser.go b/common/paths/pathparser.go index 20f5ee30d..951501406 100644 --- a/common/paths/pathparser.go +++ b/common/paths/pathparser.go @@ -239,7 +239,7 @@ const ( // E.g. /blog/my-post.md PathTypeContentSingle - // All bewlow are bundled content files. + // All below are bundled content files. // Leaf bundles, e.g. /blog/my-post/index.md PathTypeLeaf @@ -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() } @@ -368,7 +368,7 @@ func (p *Path) Name() string { return p.s } -// Name returns the last element of path withhout any extension. +// Name returns the last element of path without any extension. func (p *Path) NameNoExt() string { if i := p.identifierIndex(0); i != -1 { return p.s[p.posContainerHigh : p.identifiers[i].Low-1] @@ -376,7 +376,7 @@ func (p *Path) NameNoExt() string { return p.s[p.posContainerHigh:] } -// Name returns the last element of path withhout any language identifier. +// Name returns the last element of path without any language identifier. func (p *Path) NameNoLang() string { i := p.identifierIndex(p.posIdentifierLanguage) if i == -1 { @@ -386,7 +386,7 @@ func (p *Path) NameNoLang() string { return p.s[p.posContainerHigh:p.identifiers[i].Low-1] + p.s[p.identifiers[i].High:] } -// BaseNameNoIdentifier returns the logcical base name for a resource without any idenifier (e.g. no extension). +// BaseNameNoIdentifier returns the logical base name for a resource without any identifier (e.g. no extension). // For bundles this will be the containing directory's name, e.g. "blog". func (p *Path) BaseNameNoIdentifier() string { if p.IsBundle() { @@ -395,7 +395,7 @@ func (p *Path) BaseNameNoIdentifier() string { return p.NameNoIdentifier() } -// NameNoIdentifier returns the last element of path withhout any identifier (e.g. no extension). +// NameNoIdentifier returns the last element of path without any identifier (e.g. no extension). func (p *Path) NameNoIdentifier() string { if len(p.identifiers) > 0 { return p.s[p.posContainerHigh : p.identifiers[len(p.identifiers)-1].Low-1] @@ -435,7 +435,7 @@ func (p *Path) PathNoIdentifier() string { return p.base(false, false) } -// PathRel returns the path relativeto the given owner. +// PathRel returns the path relative to the given owner. func (p *Path) PathRel(owner *Path) string { ob := owner.Base() if !strings.HasSuffix(ob, "/") { |