mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
all: Fix minor typos
This commit is contained in:
@@ -276,7 +276,7 @@ func (f *filterDir) Readdirnames(count int) ([]string, error) {
|
||||
}
|
||||
|
||||
// Try to extract the language from the given filename.
|
||||
// Any valid language identificator in the name will win over the
|
||||
// Any valid language identifier in the name will win over the
|
||||
// language set on the file system, e.g. "mypost.en.md".
|
||||
func langInfoFrom(languages map[string]int, name string) (string, string, string) {
|
||||
var lang string
|
||||
|
@@ -135,7 +135,7 @@ func TestNoSymlinkFs(t *testing.T) {
|
||||
// Check readdir
|
||||
f, err = fs.Open(workDir)
|
||||
c.Assert(err, qt.IsNil)
|
||||
// There is at least one unsported symlink inside workDir
|
||||
// There is at least one unsupported symlink inside workDir
|
||||
_, err = f.Readdir(-1)
|
||||
c.Assert(err, qt.IsNil)
|
||||
f.Close()
|
||||
|
@@ -270,7 +270,7 @@ func TestRootMappingFsMount(t *testing.T) {
|
||||
c.Assert(err, qt.IsNil)
|
||||
c.Assert(string(b), qt.Equals, "some no content")
|
||||
|
||||
// Ambigous
|
||||
// Ambiguous
|
||||
_, err = rfs.Stat(filepath.FromSlash("content/singles/p1.md"))
|
||||
c.Assert(err, qt.Not(qt.IsNil))
|
||||
|
||||
|
Reference in New Issue
Block a user