Skip to content

Commit

Permalink
docs: change wrong word 'round-robbin' to 'round-robin' (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajie99 committed Oct 16, 2022
1 parent a0c1ea3 commit 3206009
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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})
Expand Down
2 changes: 1 addition & 1 deletion slice.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 3206009

Please sign in to comment.