aboutsummaryrefslogtreecommitdiff
path: root/src/lib/os
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-04-18 16:44:13 -0700
committerRob Pike <r@golang.org>2009-04-18 16:44:13 -0700
commitae08a48719926dddb067dc567743f656fdff19e8 (patch)
tree1384dd1f9198625d0f36026b5434a7e3b252b2f1 /src/lib/os
parent34b6f642dee3cd7a675e3233086f2bea8e68cdce (diff)
downloadgo-ae08a48719926dddb067dc567743f656fdff19e8.tar.xz
the Big Error Shift applied to lib/time/zoneinfo.go.
R=gri DELTA=22 (5 added, 0 deleted, 17 changed) OCL=27608 CL=27614
Diffstat (limited to 'src/lib/os')
-rw-r--r--src/lib/os/error.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/os/error.go b/src/lib/os/error.go
index dbba16c03e..f2960a59c1 100644
--- a/src/lib/os/error.go
+++ b/src/lib/os/error.go
@@ -25,8 +25,8 @@ func (e Errno) String() string {
return syscall.Errstr(e)
}
-// ErrnoToError calls NewError to create an _Error object for the string
-// associated with Unix error code errno.
+// ErrnoToError converts errno to an Error (underneath, an Errno).
+// It returns nil for the "no error" errno.
func ErrnoToError(errno int64) Error {
if errno == 0 {
return nil