Skip to content

Commit aa4760d

Browse files
Fixed a documentation typo
1 parent ad2aadf commit aa4760d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AsyncSequenceReader/AsyncReadUpToCountSequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extension AsyncIteratorProtocol {
1212
/// Asynchronously advances by the specified number of elements, or ends the sequence if there is no next element.
1313
///
1414
/// 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.
1616
/// - Returns: A collection with exactly `count` elements, or `nil` if the sequence is finished.
1717
/// - Throws: `AsyncSequenceReaderError.insufficientElements` if a complete byte sequence could not be returned by the time the sequence ended.
1818
public mutating func collect(_ count: Int) async throws -> [Element]? {

0 commit comments

Comments
 (0)