File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Sources/AsyncSequenceReader Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ extension AsyncIteratorProtocol {
12
12
/// Asynchronously advances by the specified number of elements, or ends the sequence if there is no next element.
13
13
///
14
14
/// If a complete array could not be collected, an error is thrown and the sequence should be considered finished.
15
- /// - Parameter count: The number of bytes to collect.
15
+ /// - Parameter count: The number of elements to collect.
16
16
/// - Returns: A collection with exactly `count` elements, or `nil` if the sequence is finished.
17
17
/// - Throws: `AsyncSequenceReaderError.insufficientElements` if a complete byte sequence could not be returned by the time the sequence ended.
18
18
public mutating func collect( _ count: Int ) async throws -> [ Element ] ? {
You can’t perform that action at this time.
0 commit comments