mirror of
https://github.com/restic/restic.git
synced 2024-12-21 23:33:03 +00:00
Fix typos
This commit is contained in:
parent
d15e693045
commit
c83b529c47
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue