]> Cypherpunks repositories - gostls13.git/commitdiff
os: be more specific on what flags are used for
authorVolker Dobler <dr.volker.dobler@gmail.com>
Thu, 3 Dec 2015 16:00:31 +0000 (17:00 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 3 Dec 2015 16:27:11 +0000 (16:27 +0000)
The flags are used in OpenFile, not Open.

Change-Id: I45c1639e36694529cb29c2b580c43a22e6fd10ac
Reviewed-on: https://go-review.googlesource.com/17352
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/file.go

index a662197ceb29fe516d96dac9a4b63f9974ed86f9..6acc57a918cd4c4723685d0720c11329fd476279 100644 (file)
@@ -52,8 +52,8 @@ var (
        Stderr = NewFile(uintptr(syscall.Stderr), "/dev/stderr")
 )
 
-// Flags to Open wrapping those of the underlying system. Not all flags
-// may be implemented on a given system.
+// Flags to OpenFile wrapping those of the underlying system. Not all
+// flags may be implemented on a given system.
 const (
        O_RDONLY int = syscall.O_RDONLY // open the file read-only.
        O_WRONLY int = syscall.O_WRONLY // open the file write-only.