Skip to content

Commit c010023

Browse files
committed
Minor.
1 parent 97796a7 commit c010023

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

keystore/atomicfile/write.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"path/filepath"
88
)
99

10-
// WriteFile atomically writes the contents of r to the specified filepath with the default permission 0600.
10+
// WriteFile atomically writes the contents of r to the specified filepath with the given mode.
1111
// This is a copy of https://github.com/natefinch/atomic/blob/master/atomic.go with minor modifications allowing
1212
// to set mode of the written file. If the file already exists, its mode is preserved.
1313
func WriteFile(filename string, r io.Reader, mode os.FileMode) (err error) {

0 commit comments

Comments
 (0)