atomicfile: update docs to clarify behavior of argument

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali 2022-08-13 21:19:43 -07:00 committed by Maisem Ali
parent 1cff719015
commit 23f37b05a3
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ import (
)
// WriteFile writes data to filename+some suffix, then renames it
// into filename.
// into filename. The perm argument is ignored on Windows.
func WriteFile(filename string, data []byte, perm os.FileMode) (err error) {
f, err := ioutil.TempFile(filepath.Dir(filename), filepath.Base(filename)+".tmp")
if err != nil {