From: Ian Lance Taylor Date: Thu, 20 Dec 2018 01:49:11 +0000 (-0800) Subject: os: clarify O_TRUNC comment X-Git-Tag: go1.12beta2~102 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=745273f739fc63a5a4089d81c85f33edca58f0e9;p=gostls13.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 --- diff --git a/src/os/file.go b/src/os/file.go index 9b7863e9b6..228777c677 100644 --- a/src/os/file.go +++ b/src/os/file.go @@ -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.