From 3071f8c8e5302a08b5e112eac96f23e349adf95e Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 6 May 2009 17:05:46 -0700 Subject: [PATCH] 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 --- src/lib/os/error.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.48.1