mirror of
https://github.com/golang/go.git
synced 2025-05-15 20:34:38 +00:00
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:
parent
a6ba5ec535
commit
3071f8c8e5
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user