mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
requested change
This commit is contained in:
parent
aa608f7032
commit
e98968aeb0
|
@ -503,7 +503,7 @@ func Concat[S ~[]E, E any](slices ...S) S {
|
|||
panic("len out of range")
|
||||
}
|
||||
}
|
||||
newslice := make(S, 0, size)
|
||||
newslice := Grow[S](nil, size)
|
||||
for _, s := range slices {
|
||||
newslice = append(newslice, s...)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue