]> Cypherpunks repositories - gostls13.git/commitdiff
regexp: change ErrInvalidDepth message to match proposal
authorIan Lance Taylor <iant@golang.org>
Tue, 19 Apr 2022 17:32:54 +0000 (10:32 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 22 Apr 2022 00:10:17 +0000 (00:10 +0000)
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>
api/next/51684.txt [new file with mode: 0644]
api/next/regexpdepth.txt [deleted file]
src/regexp/syntax/parse.go

diff --git a/api/next/51684.txt b/api/next/51684.txt
new file mode 100644 (file)
index 0000000..f35d13f
--- /dev/null
@@ -0,0 +1,2 @@
+pkg regexp/syntax, const ErrInvalidDepth = "expression nests too deeply" #51684
+pkg regexp/syntax, const ErrInvalidDepth ErrorCode #51684
diff --git a/api/next/regexpdepth.txt b/api/next/regexpdepth.txt
deleted file mode 100644 (file)
index 9810218..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-pkg regexp/syntax, const ErrInvalidDepth = "invalid nesting depth" #0
-pkg regexp/syntax, const ErrInvalidDepth ErrorCode #0
-
index cfb703d2855a22ed70aa26b1f7bff84755ce08e2..1462f4c082987d7ce20255ed04c185d42f8cde03 100644 (file)
@@ -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 {