mirror of https://github.com/golang/go.git
os: clarify O_TRUNC comment
Fixes #28699 Change-Id: Ic340c3171bb7d91d8cb9553967c2b51e7d9daba8 Reviewed-on: https://go-review.googlesource.com/c/155177 Reviewed-by: Bryan C. Mills <bcmills@google.com>
This commit is contained in:
parent
443990742e
commit
745273f739
|
|
@ -73,7 +73,7 @@ const (
|
|||
O_CREATE int = syscall.O_CREAT // create a new file if none exists.
|
||||
O_EXCL int = syscall.O_EXCL // used with O_CREATE, file must not exist.
|
||||
O_SYNC int = syscall.O_SYNC // open for synchronous I/O.
|
||||
O_TRUNC int = syscall.O_TRUNC // if possible, truncate file when opened.
|
||||
O_TRUNC int = syscall.O_TRUNC // truncate regular writable file when opened.
|
||||
)
|
||||
|
||||
// Seek whence values.
|
||||
|
|
|
|||
Loading…
Reference in New Issue