atomicfile: update docs to clarify behavior of argument

Signed-off-by: Maisem Ali <maisem@tailscale.com>
pull/5365/head
Maisem Ali 2 years ago committed by Maisem Ali
parent 1cff719015
commit 23f37b05a3

@ -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 {

Loading…
Cancel
Save