From: Russ Cox Date: Thu, 7 May 2009 00:05:46 +0000 (-0700) Subject: fix a few type errors, make ErrorString a value X-Git-Tag: weekly.2009-11-06~1697 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3071f8c8e5302a08b5e112eac96f23e349adf95e;p=gostls13.git fix a few type errors, make ErrorString a value will submit with fixed compiler R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=28371 CL=28379 --- diff --git a/src/lib/os/error.go b/src/lib/os/error.go index f2960a59c1..5acefd2adb 100644 --- a/src/lib/os/error.go +++ b/src/lib/os/error.go @@ -14,8 +14,8 @@ type Error interface { // A helper type that can be embedded or wrapped to simplify satisfying // Error. type ErrorString string -func (e *ErrorString) String() string { - return *e +func (e ErrorString) String() string { + return e } // Errno is the Unix error number. Names such as EINVAL are simple