]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.15: add release notes for regexp
authorMichael Matloob <matloob@golang.org>
Fri, 5 Jun 2020 17:18:28 +0000 (13:18 -0400)
committerMichael Matloob <matloob@golang.org>
Fri, 5 Jun 2020 19:17:58 +0000 (19:17 +0000)
Updates #37419

Change-Id: I340efe55b9dc41bb9ef6c9f0ec158d58a9445864
Reviewed-on: https://go-review.googlesource.com/c/go/+/236738
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
doc/go1.15.html

index a863b96d2250dab37239eb04949951b0a7ae42b0..492cac0b09f11a09b9ff0981588f4719f4b68675 100644 (file)
@@ -537,7 +537,9 @@ TODO
 <dl id="regexp"><dt><a href="/pkg/regexp/">regexp</a></dt>
   <dd>
     <p><!-- CL 187919 -->
-      TODO: <a href="https://golang.org/cl/187919">https://golang.org/cl/187919</a>: add (*Regexp).SubexpIndex
+      The new <a href="/pkg/regexp/#Regexp.SubexpIndex"><code>Regexp.SubexpIndex</code></a>
+      method returns the index of the first subexpression with the given name
+      within the regular expression.
     </p>
   </dd>
 </dl><!-- regexp -->