Skip to content

Commit d5ff5ee

Browse files
author
Chris Adamson
committed
Correct parameter name in AsyncStream doc comments
1 parent 771b22d commit d5ff5ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/public/Concurrency/AsyncStream.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ public struct AsyncStream<Element> {
220220
///
221221
/// - Parameter elementType: The type of element the `AsyncStream`
222222
/// produces
223-
/// - Parameter maxBufferedElements: The maximum number of elements to
224-
/// hold in the buffer. By default, this value is unlimited. Use a
223+
/// - Parameter limit: The maximum number of elements to hold in the buffer.
224+
/// By default, this value is unlimited. Use a
225225
/// `Continuation.BufferingPolicy` to buffer a specified number of oldest
226226
/// or newest elements.
227227
/// - Parameter build: A custom closure that yields values to the

stdlib/public/Concurrency/AsyncThrowingStream.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public struct AsyncThrowingStream<Element, Failure: Error> {
249249
///
250250
/// - Parameter elementType: The type of element the `AsyncThrowingStream`
251251
/// produces
252-
/// - Parameter maxBufferedElements: The maximum number of elements to
252+
/// - Parameter limit: The maximum number of elements to
253253
/// hold in the buffer. By default, this value is unlimited. Use a
254254
/// `Continuation.BufferingPolicy` to buffer a specified number of oldest
255255
/// or newest elements.

0 commit comments

Comments
 (0)