all: Fix minor typos

This commit is contained in:
Phil Davis
2020-12-16 16:56:32 +05:45
committed by GitHub
parent 21fa1e86f2
commit 04b89857e1
67 changed files with 124 additions and 124 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -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))