summaryrefslogtreecommitdiff
path: root/src/regexp/regexp.go
diff options
context:
space:
mode:
authorDiogo Pinela <diogoid7400@gmail.com>2018-03-25 23:10:37 +0100
committerBrad Fitzpatrick <bradfitz@golang.org>2018-03-28 00:31:10 +0000
commit9d84e0edd042bc6ca2a9cf3e402b81d5f27103d5 (patch)
treeaf09362359a307845fd8e77d6dca44dcbe406d07 /src/regexp/regexp.go
parent976a852d4c26b80f4084151c36f3024c180aa3b9 (diff)
downloadgo-git-9d84e0edd042bc6ca2a9cf3e402b81d5f27103d5.tar.gz
regexp: document behavior of FindAll* functions when n < 0
Fixes #24526 Change-Id: I0e38322fca12f9c88db836776920b9dfb66ff844 Reviewed-on: https://go-review.googlesource.com/102423 Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com> Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/regexp/regexp.go')
-rw-r--r--src/regexp/regexp.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regexp/regexp.go b/src/regexp/regexp.go
index 7d32d8d5a6..ae6ff23702 100644
--- a/src/regexp/regexp.go
+++ b/src/regexp/regexp.go
@@ -30,8 +30,8 @@
// matches of the entire expression. Empty matches abutting a preceding
// match are ignored. The return value is a slice containing the successive
// return values of the corresponding non-'All' routine. These routines take
-// an extra integer argument, n; if n >= 0, the function returns at most n
-// matches/submatches.
+// an extra integer argument, n. If n >= 0, the function returns at most n
+// matches/submatches; otherwise, it returns all of them.
//
// If 'String' is present, the argument is a string; otherwise it is a slice
// of bytes; return values are adjusted as appropriate.