mirror of
https://github.com/golang/go
synced 2024-11-26 06:17:57 -07:00
regexp: change ErrInvalidDepth message to match proposal
Also update the file in $GOROOT/api/next to use proposal number. For #51684 Change-Id: I28bfa6bc1cee98a17b13da196d41cda34d968bb0 Reviewed-on: https://go-review.googlesource.com/c/go/+/401076 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
parent
c510cd92cf
commit
575fd8817a
2
api/next/51684.txt
Normal file
2
api/next/51684.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
pkg regexp/syntax, const ErrInvalidDepth = "expression nests too deeply" #51684
|
||||||
|
pkg regexp/syntax, const ErrInvalidDepth ErrorCode #51684
|
@ -1,3 +0,0 @@
|
|||||||
pkg regexp/syntax, const ErrInvalidDepth = "invalid nesting depth" #0
|
|
||||||
pkg regexp/syntax, const ErrInvalidDepth ErrorCode #0
|
|
||||||
|
|
@ -43,7 +43,7 @@ const (
|
|||||||
ErrMissingRepeatArgument ErrorCode = "missing argument to repetition operator"
|
ErrMissingRepeatArgument ErrorCode = "missing argument to repetition operator"
|
||||||
ErrTrailingBackslash ErrorCode = "trailing backslash at end of expression"
|
ErrTrailingBackslash ErrorCode = "trailing backslash at end of expression"
|
||||||
ErrUnexpectedParen ErrorCode = "unexpected )"
|
ErrUnexpectedParen ErrorCode = "unexpected )"
|
||||||
ErrInvalidDepth ErrorCode = "invalid nesting depth"
|
ErrInvalidDepth ErrorCode = "expression nests too deeply"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e ErrorCode) String() string {
|
func (e ErrorCode) String() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user