diff options
| author | Jes Cok <xigua67damn@gmail.com> | 2024-04-03 12:18:14 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-04-03 22:46:15 +0000 |
| commit | 4b2db7f60d808dc9e135af86bcd4a39ae63b1fc7 (patch) | |
| tree | f4b0071298764b31f5ca19745476849ea9360a88 /src | |
| parent | 23fc9170604a3df9a0458849ffb16b570eadcc19 (diff) | |
| download | go-4b2db7f60d808dc9e135af86bcd4a39ae63b1fc7.tar.xz | |
slices: update doc for Repeat
To use (len(x) * count) consistently.
Change-Id: I45fa4383de7e05846152a8090ea5c04bc72a1727
Reviewed-on: https://go-review.googlesource.com/c/go/+/575955
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/slices/slices.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slices/slices.go b/src/slices/slices.go index a5734a17bf..d96dd8d37c 100644 --- a/src/slices/slices.go +++ b/src/slices/slices.go @@ -477,7 +477,7 @@ func Concat[S ~[]E, E any](slices ...S) S { } // Repeat returns a new slice that repeats the provided slice the given number of times. -// The result has length and capacity len(x) * count. +// The result has length and capacity (len(x) * count). // The result is never nil. // Repeat panics if count is negative or if the result of (len(x) * count) // overflows. |
