Fixed element type of chunks(ofCount:collectedInto:)

This commit is contained in:
Kevin Perry committed 2022-03-01 12:03:32 -08:00
1 parent b8242c4a6b
commit 7b62584d99
1 file changed
+1 -1
@@ -12,7 +12,7 @@
extension AsyncSequence {
@inlinable
public func chunks<Collected: RangeReplaceableCollection>(ofCount count: Int, collectedInto: Collected.Type) -> AsyncChunksOfCountSequence<Self, [Element]> where Collected.Element == Element {
public func chunks<Collected: RangeReplaceableCollection>(ofCount count: Int, collectedInto: Collected.Type) -> AsyncChunksOfCountSequence<Self, Collected> where Collected.Element == Element {
AsyncChunksOfCountSequence(self, count: count)
}