summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-05-06 17:05:46 -0700
committerRuss Cox <rsc@golang.org>2009-05-06 17:05:46 -0700
commit204752a1b4e68c8533c58c3d7e591609234e1860 (patch)
tree1e634c60c8b55c001bbdf00feccc714793e25de2
parentf5f73ccb4c225211981bd4efe50e2859c47ad846 (diff)
downloadgolang-204752a1b4e68c8533c58c3d7e591609234e1860.tar.gz
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
-rw-r--r--src/lib/os/error.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/os/error.go b/src/lib/os/error.go
index f2960a59c..5acefd2ad 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