mirror of
https://github.com/restic/restic.git
synced 2025-11-16 04:03:42 +00:00
Fix typo
This commit is contained in:
@@ -758,7 +758,7 @@ type Loader interface {
|
|||||||
|
|
||||||
// DownloadAndHash is all-in-one helper to download content of the file at h to a temporary filesystem location
|
// DownloadAndHash is all-in-one helper to download content of the file at h to a temporary filesystem location
|
||||||
// and calculate ID of the contents. Returned (temporary) file is positioned at the beginning of the file;
|
// and calculate ID of the contents. Returned (temporary) file is positioned at the beginning of the file;
|
||||||
// it is reponsibility of the caller to close and delete the file.
|
// it is the reponsibility of the caller to close and delete the file.
|
||||||
func DownloadAndHash(ctx context.Context, be Loader, h restic.Handle) (tmpfile *os.File, hash restic.ID, size int64, err error) {
|
func DownloadAndHash(ctx context.Context, be Loader, h restic.Handle) (tmpfile *os.File, hash restic.ID, size int64, err error) {
|
||||||
tmpfile, err = fs.TempFile("", "restic-temp-")
|
tmpfile, err = fs.TempFile("", "restic-temp-")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user