Skip to content

Commit c9b630b

Browse files
lev-okLevko Burburas
andauthored
Fix input var type for BatchListIntoGroupsOf (#80)
Co-authored-by: Levko Burburas <levko.burburas@biptec.com>
1 parent 362bd2d commit c9b630b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collections/lists.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func MakeCopyOfList[S ~[]E, E comparable](list S) S {
3131

3232
// BatchListIntoGroupsOf will group the provided slice into groups of size n, with the last of being truncated to
3333
// the remaining count of elements. Returns nil if n is <= 0
34-
func BatchListIntoGroupsOf[S ~[]E, E comparable](slice S, batchSize int) []S {
34+
func BatchListIntoGroupsOf[S ~[]E, E any](slice S, batchSize int) []S {
3535
if batchSize <= 0 {
3636
return nil
3737
}

0 commit comments

Comments
 (0)