mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
the Big Error Shift applied to lib/time/zoneinfo.go.
R=gri DELTA=22 (5 added, 0 deleted, 17 changed) OCL=27608 CL=27614
This commit is contained in:
parent
34b6f642de
commit
ae08a48719
3 changed files with 22 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue