From 87ce757eee55aafbe35b03b2cad734d9631fe6cb Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Sat, 18 Apr 2009 16:44:13 -0700 Subject: the Big Error Shift applied to lib/time/zoneinfo.go. R=gri DELTA=22 (5 added, 0 deleted, 17 changed) OCL=27608 CL=27614 --- src/lib/os/error.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/os/error.go') diff --git a/src/lib/os/error.go b/src/lib/os/error.go index dbba16c03..f2960a59c 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 -- cgit v1.2.3