mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
regexp: more cross-references in docstrings
Change-Id: I93f617bb6d82b00d44ce9a54c2ddcc8a61209783 Reviewed-on: https://go-review.googlesource.com/c/go/+/597776 Reviewed-by: Than McIntosh <thanm@google.com> Auto-Submit: Ian Lance Taylor <iant@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
9915b87059
commit
f2bcab5fb3
2 changed files with 7 additions and 11 deletions
|
|
@ -286,7 +286,7 @@ func SplitN(s, sep string, n int) []string { return genSplit(s, sep, 0, n) }
|
|||
// - n < 0: all substrings.
|
||||
//
|
||||
// Edge cases for s and sep (for example, empty strings) are handled
|
||||
// as described in the documentation for SplitAfter.
|
||||
// as described in the documentation for [SplitAfter].
|
||||
func SplitAfterN(s, sep string, n int) []string {
|
||||
return genSplit(s, sep, len(sep), n)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue