]> Cypherpunks repositories - gostls13.git/commitdiff
os: document DevNull on windows
authorAlex Brainman <alex.brainman@gmail.com>
Sat, 24 Mar 2018 23:56:11 +0000 (10:56 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Sun, 25 Mar 2018 00:45:33 +0000 (00:45 +0000)
DevNull is documented on darwin, dragonfly, freebsd, linux,
nacl, netbsd, openbsd, solaris and plan9, but not on windows.
Add missing documentation.

Change-Id: Icdbded0dd5e322ed4360cbce6bee4cdca5cfbe72
Reviewed-on: https://go-review.googlesource.com/102456
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/file_windows.go

index 91918301443b9f37fc45999109b8b43c856f7e03..8ace9c0c7fa4bed73de7bb72ef66fbe9107683a0 100644 (file)
@@ -87,6 +87,8 @@ type dirInfo struct {
 func epipecheck(file *File, e error) {
 }
 
+// DevNull is the name of the operating system's ``null device.''
+// On Unix-like systems, it is "/dev/null"; on Windows, "NUL".
 const DevNull = "NUL"
 
 func (f *file) isdir() bool { return f != nil && f.dirinfo != nil }