]> Cypherpunks repositories - gostls13.git/commitdiff
fix a few type errors, make ErrorString a value
authorRuss Cox <rsc@golang.org>
Thu, 7 May 2009 00:05:46 +0000 (17:05 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 7 May 2009 00:05:46 +0000 (17:05 -0700)
will submit with fixed compiler

R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=28371
CL=28379

src/lib/os/error.go

index f2960a59c1af8b41727c4a899dfb2285547c6e33..5acefd2adbe55b1bec2a698cb2a9437f1e415495 100644 (file)
@@ -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