Fix typos

This commit is contained in:
Andreas Deininger
2024-08-11 21:38:15 +02:00
parent 33c670dd7a
commit 4401265e36
3 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ func TestFilesWriterRecursiveOverwrite(t *testing.T) {
// must error if recursive delete is not allowed
w := newFilesWriter(1, false)
err := w.writeToFile(path, []byte{1}, 0, 2, false)
rtest.Assert(t, errors.Is(err, notEmptyDirError()), "unexepected error got %v", err)
rtest.Assert(t, errors.Is(err, notEmptyDirError()), "unexpected error got %v", err)
rtest.Equals(t, 0, len(w.buckets[0].files))
// must replace directory

View File

@@ -8,6 +8,6 @@ import "strings"
// toComparableFilename returns a filename suitable for equality checks. On Windows, it returns the
// uppercase version of the string. On all other systems, it returns the unmodified filename.
func toComparableFilename(path string) string {
// apparently NTFS internally uppercases filenames for comparision
// apparently NTFS internally uppercases filenames for comparison
return strings.ToUpper(path)
}