2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 14:56:29 +00:00

Fix typos

This commit is contained in:
Andreas Deininger 2024-08-11 21:38:15 +02:00 committed by Michael Eischer
parent d15e693045
commit c83b529c47
3 changed files with 3 additions and 3 deletions

View File

@ -585,7 +585,7 @@ Sometimes, it can be useful to directly save the output of a program, for exampl
``mysqldump`` so that the SQL can later be restored. Restic supports this mode
of operation; just supply the option ``--stdin-from-command`` when using the
``backup`` action, and write the command in place of the files/directories. To prevent
restic from interpreting the arguments for the commmand, make sure to add ``--`` before
restic from interpreting the arguments for the command, make sure to add ``--`` before
the command starts:
.. code-block:: console

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