diff --git a/README.md b/README.md index 3c74f3eb..c7418fa6 100644 --- a/README.md +++ b/README.md @@ -515,7 +515,7 @@ flat := lo.Flatten[int]([][]int{{0, 1}, {2, 3, 4, 5}}) ### Interleave -Round-robbin alternating input slices and sequentially appending value at index into result. +Round-robin alternating input slices and sequentially appending value at index into result. ```go interleaved := lo.Interleave[int]([]int{1, 4, 7}, []int{2, 5, 8}, []int{3, 6, 9}) diff --git a/slice.go b/slice.go index 8ef4addc..0790c3f0 100644 --- a/slice.go +++ b/slice.go @@ -229,7 +229,7 @@ func Flatten[T any](collection [][]T) []T { return result } -// Interleave round-robbin alternating input slices and sequentially appending value at index into result +// Interleave round-robin alternating input slices and sequentially appending value at index into result // Play: https://go.dev/play/p/DDhlwrShbwe func Interleave[T any](collections ...[]T) []T { if len(collections) == 0 {