Skip to content

Commit

Permalink
requested change
Browse files Browse the repository at this point in the history
  • Loading branch information
earthboundkid committed Aug 7, 2023
1 parent aa608f7 commit e98968a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slices/slices.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
}
Expand Down

0 comments on commit e98968a

Please sign in to comment.