]> Cypherpunks repositories - gostls13.git/commitdiff
os: correct func name in WriteFile godoc comment
authorTobias Klauser <tklauser@distanz.ch>
Wed, 8 Mar 2023 10:30:16 +0000 (11:30 +0100)
committerGopher Robot <gobot@golang.org>
Mon, 13 Mar 2023 13:35:04 +0000 (13:35 +0000)
Change-Id: Ideb70ce04f49ff676c20c2e1f0b43f1d7a6665dc
Reviewed-on: https://go-review.googlesource.com/c/go/+/474355
Reviewed-by: Rob Pike <r@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>

src/os/file.go

index 776e885aff7e52b629f8688ad849d184ab8009a1..10aed03b9659756e945fefd05fa210079f1ca70b 100644 (file)
@@ -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)