From 5bc9d12ecb73b27259faa0295a6aed476a117d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=B0?= <985341864@qq.com> Date: Sun, 16 Oct 2022 14:57:01 +0800 Subject: [PATCH] docs: change wrong word 'round-robbin' to 'round-robin' --- README.md | 2 +- slice.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {