Merge pull request #66 from apple/pr/chunked-collection-type-fix

Fixed element type of chunks(ofCount:collectedInto:)
This commit is contained in:
kperryua authored and GitHub committed 2022-03-01 12:05:53 -08:00
commit d90945abc8
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)
}