From 782f9ce52f5e021a8d0b0140919afecf0733c4a7 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Sun, 25 Mar 2018 10:56:11 +1100 Subject: [PATCH] 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 --- src/os/file_windows.go | 2 ++ 1 file changed, 2 insertions(+) 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 } -- 2.50.0