1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 07:02:29 +08:00

perf(slice): make a clearer panic description (#223)

This commit is contained in:
残念
2024-05-30 16:55:30 +08:00
committed by GitHub
parent 4b3a62b36a
commit ce2397422e
3 changed files with 15 additions and 24 deletions

View File

@@ -321,12 +321,12 @@ func main() {
### <span id="Concat">Concat</span>
<p>Creates a new slice concatenating slice with any additional slices.</p>
<p>Concat creates a new slice concatenating slice with any additional slices.</p>
<b>Signature:</b>
```go
func Concat[T any](slice []T, slices ...[]T) []T
func Concat[T any](slices ...[]T) []T
```
<b>Example:<span style="float:right;display:inline-block;">[Run](https://go.dev/play/p/gPt-q7zr5mk)</span></b>
@@ -1540,7 +1540,7 @@ func main() {
}
```
### <span id="Merge">Merge</span>
### <span id="Merge">Merge(deprecated: use Concat)</span>
<p>Merge all given slices into one slice.</p>