@@ -30,10 +30,10 @@ import Swift
30
30
/// When there are no further elements to produce, call the continuation's
31
31
/// `finish()` method. This causes the sequence iterator to produce a `nil`,
32
32
/// 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`.
37
37
///
38
38
/// An arbitrary source of elements can produce elements faster than they are
39
39
/// consumed by a caller iterating over them. Because of this, `AsyncThrowingStream`
@@ -165,7 +165,7 @@ public struct AsyncThrowingStream<Element, Failure: Error> {
165
165
/// values from the stream.
166
166
case enqueued( remaining: Int )
167
167
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 .
169
169
///
170
170
/// The associated element for this case is the element that the stream
171
171
/// dropped.
@@ -176,7 +176,7 @@ public struct AsyncThrowingStream<Element, Failure: Error> {
176
176
///
177
177
/// This indicates the stream terminated prior to calling `yield`, either
178
178
/// because the stream finished normally or through cancellation, or
179
- /// threw an error.
179
+ /// it threw an error.
180
180
case terminated
181
181
}
182
182
0 commit comments