From 81d06f550c6f6fc979de79330cb9698f1677a7b2 Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Sun, 21 Aug 2022 21:22:16 +0200 Subject: [PATCH] fixed bug in FlatChan --- flat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flat.go b/flat.go index a070da9..9d112f8 100644 --- a/flat.go +++ b/flat.go @@ -15,7 +15,7 @@ func FlatSlice[T any](source <-chan []T) <-chan T { return out } -func FlatChan[T any](source <-chan chan T) <-chan T { +func FlatChan[T any](source <-chan <-chan T) <-chan T { out := make(chan T, cap(source)) go func() {