Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorPhil Davis <phil@jankaritech.com>2020-12-16 14:11:32 +0300
committerGitHub <noreply@github.com>2020-12-16 14:11:32 +0300
commit04b89857e104ac7dcbf9fc65d8d4f1a1178123e6 (patch)
tree585bf761f0a1cfc69dffcd8afd22e94ca9da7c07 /source
parent21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54 (diff)
all: Fix minor typos
Diffstat (limited to 'source')
-rw-r--r--source/fileInfo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fileInfo.go b/source/fileInfo.go
index 4e7866315..9e7e6df53 100644
--- a/source/fileInfo.go
+++ b/source/fileInfo.go
@@ -152,7 +152,7 @@ func (fi *FileInfo) LogicalName() string { return fi.name }
func (fi *FileInfo) BaseFileName() string { return fi.baseName }
// TranslationBaseName returns a file's translation base name without the
-// language segement (ie. "page").
+// language segment (ie. "page").
func (fi *FileInfo) TranslationBaseName() string { return fi.translationBaseName }
// ContentBaseName is a either TranslationBaseName or name of containing folder
@@ -266,7 +266,7 @@ func (sp *SourceSpec) NewFileInfo(fi hugofs.FileMetaInfo) (*FileInfo, error) {
baseName := helpers.Filename(name)
if translationBaseName == "" {
- // This is usyally provided by the filesystem. But this FileInfo is also
+ // This is usually provided by the filesystem. But this FileInfo is also
// created in a standalone context when doing "hugo new". This is
// an approximate implementation, which is "good enough" in that case.
fileLangExt := filepath.Ext(baseName)