diff options
author | Jes Cok <xigua67damn@gmail.com> | 2024-03-15 13:47:53 +0800 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2024-03-19 21:38:37 +0000 |
commit | f94d82b2c03c756f1d8893dc0282e9608e7d32a1 (patch) | |
tree | 62a0bc5ff7c55087f8cecea9d730bb418b1cb58a /doc | |
parent | d2eb72fcff90d1c01fb2336a4c6f0f7fd7e01cbc (diff) | |
download | go-f94d82b2c03c756f1d8893dc0282e9608e7d32a1.tar.gz go-f94d82b2c03c756f1d8893dc0282e9608e7d32a1.zip |
slices: add func Repeat
Fixes #65238
Change-Id: I32ae4d922788cc6fbbe80f5b558a075951e3c892
Reviewed-on: https://go-review.googlesource.com/c/go/+/571895
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/next/6-stdlib/99-minor/slices/65238.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/next/6-stdlib/99-minor/slices/65238.md b/doc/next/6-stdlib/99-minor/slices/65238.md new file mode 100644 index 0000000000..9204eb58a9 --- /dev/null +++ b/doc/next/6-stdlib/99-minor/slices/65238.md @@ -0,0 +1,2 @@ +The [`Repeat`](/pkg/slices#Repeat) function returns a new slice +that repeats the provided slice the given number of times. |