]> Cypherpunks repositories - gostls13.git/commit
io/ioutil: update WriteFile to clarify it does not change permissions if the file...
authorjoshuabezaleel <joshua.bezaleel@gmail.com>
Fri, 7 Feb 2020 10:36:26 +0000 (17:36 +0700)
committerRob Pike <r@golang.org>
Thu, 4 Jun 2020 10:53:46 +0000 (10:53 +0000)
commitb371f189dfdfb2454a20ec276de55fe884d6ff9f
tree67ce2494bb5895afef1db412d9696553b12b3501
parentbffb8818e76e830697e183219523aa25a32480f0
io/ioutil: update WriteFile to clarify it does not change permissions if the file exists.

The existing documentation of WriteFile does not make it clear for
non-native English speakers that it will not change the permissions if
the file already exists before.

Fixes #35711

Change-Id: If861c3e3700957fc9ac3d5313351c57d399d3f58
Reviewed-on: https://go-review.googlesource.com/c/go/+/218417
Reviewed-by: Rob Pike <r@golang.org>
src/io/ioutil/ioutil.go