Skip to content

Commit 78178d0

Browse files
authored
all: Typo fixes
1 parent 68d92ef commit 78178d0

File tree

13 files changed

+20
-20
lines changed

13 files changed

+20
-20
lines changed

common/paths/pathparser.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ const (
239239
// E.g. /blog/my-post.md
240240
PathTypeContentSingle
241241

242-
// All bewlow are bundled content files.
242+
// All below are bundled content files.
243243

244244
// Leaf bundles, e.g. /blog/my-post/index.md
245245
PathTypeLeaf
@@ -313,7 +313,7 @@ func (p *Path) norm(s string) string {
313313
return s
314314
}
315315

316-
// IdentifierBase satifies identity.Identity.
316+
// IdentifierBase satisfies identity.Identity.
317317
func (p *Path) IdentifierBase() string {
318318
return p.Base()
319319
}
@@ -368,15 +368,15 @@ func (p *Path) Name() string {
368368
return p.s
369369
}
370370

371-
// Name returns the last element of path withhout any extension.
371+
// Name returns the last element of path without any extension.
372372
func (p *Path) NameNoExt() string {
373373
if i := p.identifierIndex(0); i != -1 {
374374
return p.s[p.posContainerHigh : p.identifiers[i].Low-1]
375375
}
376376
return p.s[p.posContainerHigh:]
377377
}
378378

379-
// Name returns the last element of path withhout any language identifier.
379+
// Name returns the last element of path without any language identifier.
380380
func (p *Path) NameNoLang() string {
381381
i := p.identifierIndex(p.posIdentifierLanguage)
382382
if i == -1 {
@@ -386,7 +386,7 @@ func (p *Path) NameNoLang() string {
386386
return p.s[p.posContainerHigh:p.identifiers[i].Low-1] + p.s[p.identifiers[i].High:]
387387
}
388388

389-
// BaseNameNoIdentifier returns the logcical base name for a resource without any idenifier (e.g. no extension).
389+
// BaseNameNoIdentifier returns the logical base name for a resource without any identifier (e.g. no extension).
390390
// For bundles this will be the containing directory's name, e.g. "blog".
391391
func (p *Path) BaseNameNoIdentifier() string {
392392
if p.IsBundle() {
@@ -395,7 +395,7 @@ func (p *Path) BaseNameNoIdentifier() string {
395395
return p.NameNoIdentifier()
396396
}
397397

398-
// NameNoIdentifier returns the last element of path withhout any identifier (e.g. no extension).
398+
// NameNoIdentifier returns the last element of path without any identifier (e.g. no extension).
399399
func (p *Path) NameNoIdentifier() string {
400400
if len(p.identifiers) > 0 {
401401
return p.s[p.posContainerHigh : p.identifiers[len(p.identifiers)-1].Low-1]
@@ -435,7 +435,7 @@ func (p *Path) PathNoIdentifier() string {
435435
return p.base(false, false)
436436
}
437437

438-
// PathRel returns the path relativeto the given owner.
438+
// PathRel returns the path relative to the given owner.
439439
func (p *Path) PathRel(owner *Path) string {
440440
ob := owner.Base()
441441
if !strings.HasSuffix(ob, "/") {

create/skeletons/theme/layouts/partials/terms.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
For a given taxonomy, renders a list of terms assigned to the page.
33

44
@context {page} page The current page.
5-
@context {string} taxonomy The taxonony.
5+
@context {string} taxonomy The taxonomy.
66

77
@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
88
*/}}

deps/deps.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ type BuildState struct {
361361

362362
mu sync.Mutex // protects state below.
363363

364-
// A set of ilenames in /public that
364+
// A set of filenames in /public that
365365
// contains a post-processing prefix.
366366
filenamesWithPostPrefix map[string]bool
367367
}

hugofs/dirsmerger.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var LanguageDirsMerger overlayfs.DirsMerger = func(lofi, bofi []fs.DirEntry) []f
4242

4343
// AppendDirsMerger merges two directories keeping all regular files
4444
// with the first slice as the base.
45-
// Duplicate directories in the secnond slice will be ignored.
45+
// Duplicate directories in the second slice will be ignored.
4646
// This strategy is used for the i18n and data fs where we need all entries.
4747
var AppendDirsMerger overlayfs.DirsMerger = func(lofi, bofi []fs.DirEntry) []fs.DirEntry {
4848
for _, fi1 := range bofi {

hugofs/rootmapping_fs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ func (f *rootMappingDir) ReadDir(count int) ([]iofs.DirEntry, error) {
822822
return f.fs.collectDirEntries(f.name)
823823
}
824824

825-
// Sentinal error to signal that a file is a directory.
825+
// Sentinel error to signal that a file is a directory.
826826
var errIsDir = errors.New("isDir")
827827

828828
func (f *rootMappingDir) Stat() (iofs.FileInfo, error) {

identity/identity.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ func (im *identityManager) String() string {
355355
}
356356

357357
func (im *identityManager) forEeachIdentity(fn func(id Identity) bool) bool {
358-
// The absense of a lock here is debliberate. This is currently opnly used on server reloads
358+
// The absence of a lock here is deliberate. This is currently only used on server reloads
359359
// in a single-threaded context.
360360
for id := range im.ids {
361361
if fn(id) {

main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ var commonTestScriptsParam = testscript.Params{
134134
fmt.Fprintf(ts.Stdout(), "%s %04o %s %s\n", fi.Mode(), fi.Mode().Perm(), fi.ModTime().Format(time.RFC3339Nano), fi.Name())
135135
}
136136
},
137-
// append appends to a file with a leaading newline.
137+
// append appends to a file with a leading newline.
138138
"append": func(ts *testscript.TestScript, neg bool, args []string) {
139139
if len(args) < 2 {
140140
ts.Fatalf("usage: append FILE TEXT")

markup/goldmark/codeblocks/render.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ type codeBlockContext struct {
147147
ordinal int
148148

149149
// This is only used in error situations and is expensive to create,
150-
// to deleay creation until needed.
150+
// to delay creation until needed.
151151
pos htext.Position
152152
posInit sync.Once
153153
createPos func() htext.Position

markup/internal/attributes/attributes.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func New(astAttributes []ast.Attribute, ownerType AttributesOwnerType) *Attribut
9595
case []byte:
9696
// Note that we don't do any HTML escaping here.
9797
// We used to do that, but that changed in #9558.
98-
// Noww it's up to the templates to decide.
98+
// Now it's up to the templates to decide.
9999
vv = string(vvv)
100100
default:
101101
panic(fmt.Sprintf("not implemented: %T", vvv))
@@ -175,7 +175,7 @@ func (a *AttributesHolder) OptionsSlice() []Attribute {
175175

176176
// RenderASTAttributes writes the AST attributes to the given as attributes to an HTML element.
177177
// This is used by the default HTML renderers, e.g. for headings etc. where no hook template could be found.
178-
// This performs HTML esacaping of string attributes.
178+
// This performs HTML escaping of string attributes.
179179
func RenderASTAttributes(w hugio.FlexiWriter, attributes ...ast.Attribute) {
180180
for _, attr := range attributes {
181181

modules/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ type Config struct {
270270

271271
// When enabled, we will pick the vendored module closest to the module
272272
// using it.
273-
// The default behaviour is to pick the first.
273+
// The default behavior is to pick the first.
274274
// Note that there can still be only one dependency of a given module path,
275275
// so once it is in use it cannot be redefined.
276276
VendorClosest bool

releaser/releaser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929

3030
const commitPrefix = "releaser:"
3131

32-
// New initialises a ReleaseHandler.
32+
// New initializes a ReleaseHandler.
3333
func New(skipPush, try bool, step int) (*ReleaseHandler, error) {
3434
if step < 1 || step > 2 {
3535
return nil, fmt.Errorf("step must be 1 or 2")

resources/resource_transformers/tocss/dartsass/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
// Package dartsass integrates with the Dass Sass Embedded protocol to transpile
14+
// Package dartsass integrates with the Dart Sass Embedded protocol to transpile
1515
// SCSS/SASS.
1616
package dartsass
1717

resources/resource_transformers/tocss/dartsass/transform.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (t importResolver) CanonicalizeURL(url string) (string, error) {
181181
}
182182
}
183183

184-
// Not found, let Dart Dass handle it
184+
// Not found, let Dart Sass handle it
185185
return "", nil
186186
}
187187

0 commit comments

Comments
 (0)