mirror of
https://github.com/golang/go
synced 2024-10-03 08:11:27 -06:00
comment change
R=r OCL=31359 CL=31359
This commit is contained in:
parent
ff9e657fb3
commit
e7af3b8e05
@ -30,8 +30,8 @@ func ReadFile(filename string) ([]byte, os.Error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// WriteFile writes data to a file named by filename.
|
// WriteFile writes data to a file named by filename.
|
||||||
// If the file does not exist, WriteFile creates it with permissions perm.
|
// If the file does not exist, WriteFile creates it with permissions perm;
|
||||||
//
|
// otherwise WriteFile truncates it before writing.
|
||||||
func WriteFile(filename string, data []byte, perm int) os.Error {
|
func WriteFile(filename string, data []byte, perm int) os.Error {
|
||||||
f, err := os.Open(filename, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, perm);
|
f, err := os.Open(filename, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, perm);
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user