requested change

This commit is contained in:
Carl Johnson 2023-08-07 17:29:45 -04:00
parent aa608f7032
commit e98968aeb0

View file

@ -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...)
}