summaryrefslogtreecommitdiffstats
path: root/hugofs
diff options
context:
space:
mode:
authorChristian Oliff <christianoliff@pm.me>2024-03-16 01:25:52 +0900
committerGitHub <noreply@github.com>2024-03-15 17:25:52 +0100
commit78178d0c2a10e7793a41f8f66b3a4a6e4f70ef7e (patch)
tree21d0d310785676b914035e5930e987540c494d8d /hugofs
parent68d92ef9ddbb63340d71af0cb30e6fb7c4912c65 (diff)
all: Typo fixes
Diffstat (limited to 'hugofs')
-rw-r--r--hugofs/dirsmerger.go2
-rw-r--r--hugofs/rootmapping_fs.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/hugofs/dirsmerger.go b/hugofs/dirsmerger.go
index 392353e27..9eedb5844 100644
--- a/hugofs/dirsmerger.go
+++ b/hugofs/dirsmerger.go
@@ -42,7 +42,7 @@ var LanguageDirsMerger overlayfs.DirsMerger = func(lofi, bofi []fs.DirEntry) []f
// AppendDirsMerger merges two directories keeping all regular files
// with the first slice as the base.
-// Duplicate directories in the secnond slice will be ignored.
+// Duplicate directories in the second slice will be ignored.
// This strategy is used for the i18n and data fs where we need all entries.
var AppendDirsMerger overlayfs.DirsMerger = func(lofi, bofi []fs.DirEntry) []fs.DirEntry {
for _, fi1 := range bofi {
diff --git a/hugofs/rootmapping_fs.go b/hugofs/rootmapping_fs.go
index a30498668..c91403c79 100644
--- a/hugofs/rootmapping_fs.go
+++ b/hugofs/rootmapping_fs.go
@@ -822,7 +822,7 @@ func (f *rootMappingDir) ReadDir(count int) ([]iofs.DirEntry, error) {
return f.fs.collectDirEntries(f.name)
}
-// Sentinal error to signal that a file is a directory.
+// Sentinel error to signal that a file is a directory.
var errIsDir = errors.New("isDir")
func (f *rootMappingDir) Stat() (iofs.FileInfo, error) {