mirror of
https://github.com/golang/go
synced 2024-11-21 21:04:41 -07:00
regexp: remove vestigial Error type
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5573069
This commit is contained in:
parent
9acea02de2
commit
73ce14d0aa
@ -66,13 +66,6 @@ import (
|
||||
|
||||
var debug = false
|
||||
|
||||
// Error is the local type for a parsing error.
|
||||
type Error string
|
||||
|
||||
func (e Error) Error() string {
|
||||
return string(e)
|
||||
}
|
||||
|
||||
// Regexp is the representation of a compiled regular expression.
|
||||
// The public interface is entirely through methods.
|
||||
// A Regexp is safe for concurrent use by multiple goroutines.
|
||||
|
Loading…
Reference in New Issue
Block a user