Skip to content

Commit

Permalink
os: be more specific on what flags are used for
Browse files Browse the repository at this point in the history
The flags are used in OpenFile, not Open.

Change-Id: I45c1639e36694529cb29c2b580c43a22e6fd10ac
Reviewed-on: https://go-review.googlesource.com/17352
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
vdobler authored and bradfitz committed Dec 3, 2015
1 parent 3e6529d commit 008e96c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 008e96c

Please sign in to comment.