mirror of
https://github.com/golang/go.git
synced 2024-11-21 21:11:11 +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."
|
||||
|
||||
type (e errorConst) Error() string {
|
||||
func (e errorConst) Error() string {
|
||||
return string(e)
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user