From: Alex Brainman Date: Sat, 24 Mar 2018 23:56:11 +0000 (+1100) Subject: os: document DevNull on windows X-Git-Tag: go1.11beta1~1117 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=782f9ce52f5e021a8d0b0140919afecf0733c4a7;p=gostls13.git os: document DevNull on windows 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 TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/os/file_windows.go b/src/os/file_windows.go index 9191830144..8ace9c0c7f 100644 --- a/src/os/file_windows.go +++ b/src/os/file_windows.go @@ -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 }