From: Tobias Klauser Date: Wed, 8 Mar 2023 10:30:16 +0000 (+0100) Subject: os: correct func name in WriteFile godoc comment X-Git-Tag: go1.21rc1~1308 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=93b8995594457a6984382b81fd9d4033c039bd78;p=gostls13.git os: correct func name in WriteFile godoc comment Change-Id: Ideb70ce04f49ff676c20c2e1f0b43f1d7a6665dc Reviewed-on: https://go-review.googlesource.com/c/go/+/474355 Reviewed-by: Rob Pike TryBot-Result: Gopher Robot Auto-Submit: Tobias Klauser Reviewed-by: Carlos Amedee Reviewed-by: Ian Lance Taylor Run-TryBot: Tobias Klauser --- diff --git a/src/os/file.go b/src/os/file.go index 776e885aff..10aed03b96 100644 --- a/src/os/file.go +++ b/src/os/file.go @@ -724,7 +724,7 @@ func ReadFile(name string) ([]byte, error) { // WriteFile writes data to the named file, creating it if necessary. // If the file does not exist, WriteFile creates it with permissions perm (before umask); // otherwise WriteFile truncates it before writing, without changing permissions. -// Since Writefile requires multiple system calls to complete, a failure mid-operation +// Since WriteFile requires multiple system calls to complete, a failure mid-operation // can leave the file in a partially written state. func WriteFile(name string, data []byte, perm FileMode) error { f, err := OpenFile(name, O_WRONLY|O_CREATE|O_TRUNC, perm)