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
This commit is contained in:
Russ Cox 2009-05-06 17:05:46 -07:00
parent a6ba5ec535
commit 3071f8c8e5

View File

@ -14,8 +14,8 @@ type Error interface {
// A helper type that can be embedded or wrapped to simplify satisfying // A helper type that can be embedded or wrapped to simplify satisfying
// Error. // Error.
type ErrorString string type ErrorString string
func (e *ErrorString) String() string { func (e ErrorString) String() string {
return *e return e
} }
// Errno is the Unix error number. Names such as EINVAL are simple // Errno is the Unix error number. Names such as EINVAL are simple