Skip to content

Commit 5ce6d8f

Browse files
author
Chris Adamson
committed
Apply edits to Async(Throwing)Stream doc comments.
1 parent c11034c commit 5ce6d8f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

stdlib/public/Concurrency/AsyncStream.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public struct AsyncStream<Element> {
142142
/// values from the stream.
143143
case enqueued(remaining: Int)
144144

145-
/// The stream didn't enqueue the element due to a full buffer.
145+
/// The stream didn't enqueue the element because the buffer was full.
146146
///
147147
/// The associated element for this case is the element dropped by the stream.
148148
case dropped(Element)

stdlib/public/Concurrency/AsyncThrowingStream.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ import Swift
3030
/// When there are no further elements to produce, call the continuation's
3131
/// `finish()` method. This causes the sequence iterator to produce a `nil`,
3232
/// which terminates the sequence. If an error occurs, call the continuation's
33-
/// `finish(throwing:)` method, which causes the iterator's `next()` to throw
34-
/// the error to the awaiting call point. The continuation is `Sendable`, which
35-
/// permits calling it from concurrent contexts external to
36-
/// the iteration of the `AsyncThrowingStream`.
33+
/// `finish(throwing:)` method, which causes the iterator's `next()` method to
34+
/// throw the error to the awaiting call point. The continuation is `Sendable`,
35+
/// which permits calling it from concurrent contexts external to the iteration
36+
/// of the `AsyncThrowingStream`.
3737
///
3838
/// An arbitrary source of elements can produce elements faster than they are
3939
/// consumed by a caller iterating over them. Because of this, `AsyncThrowingStream`
@@ -165,7 +165,7 @@ public struct AsyncThrowingStream<Element, Failure: Error> {
165165
/// values from the stream.
166166
case enqueued(remaining: Int)
167167

168-
/// The stream didn't enqueue the element due to a full buffer.
168+
/// The stream didn't enqueue the element because the buffer was full.
169169
///
170170
/// The associated element for this case is the element that the stream
171171
/// dropped.
@@ -176,7 +176,7 @@ public struct AsyncThrowingStream<Element, Failure: Error> {
176176
///
177177
/// This indicates the stream terminated prior to calling `yield`, either
178178
/// because the stream finished normally or through cancellation, or
179-
/// threw an error.
179+
/// it threw an error.
180180
case terminated
181181
}
182182

0 commit comments

Comments
 (0)