mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
Fixed typo in constant error example code
parent
ff87aa9400
commit
f67b16e0e4
@ -50,7 +50,7 @@ type errorConst string
|
|||||||
|
|
||||||
const ErrTooManyErrors errorConst = "too many errors found."
|
const ErrTooManyErrors errorConst = "too many errors found."
|
||||||
|
|
||||||
type (e errorConst) Error() string {
|
func (e errorConst) Error() string {
|
||||||
return string(e)
|
return string(e)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user