diff options
author | Ian Lance Taylor <iant@golang.org> | 2022-04-19 10:32:54 -0700 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2022-04-22 00:10:17 +0000 |
commit | 575fd8817ae9817303a69065def80c574718169e (patch) | |
tree | 6760444bca0fbd039c5cc6b0e080f5ea7454cede /src/regexp | |
parent | c510cd92cf69df3cdc224b930490274ce1b6e2ac (diff) | |
download | go-575fd8817ae9817303a69065def80c574718169e.tar.gz go-575fd8817ae9817303a69065def80c574718169e.zip |
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>
Diffstat (limited to 'src/regexp')
-rw-r--r-- | src/regexp/syntax/parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regexp/syntax/parse.go b/src/regexp/syntax/parse.go index cfb703d285..1462f4c082 100644 --- a/src/regexp/syntax/parse.go +++ b/src/regexp/syntax/parse.go @@ -43,7 +43,7 @@ const ( ErrMissingRepeatArgument ErrorCode = "missing argument to repetition operator" ErrTrailingBackslash ErrorCode = "trailing backslash at end of expression" ErrUnexpectedParen ErrorCode = "unexpected )" - ErrInvalidDepth ErrorCode = "invalid nesting depth" + ErrInvalidDepth ErrorCode = "expression nests too deeply" ) func (e ErrorCode) String() string { |