@@ -131,7 +131,7 @@ public struct AsyncStream<Element> {
131
131
132
132
/// The stream successfully enqueued the element.
133
133
///
134
- /// This value reprsents the successful enqueueing of an element, whether
134
+ /// This value represents the successful enqueueing of an element, whether
135
135
/// the stream buffers the element or delivers it immediately to a pending
136
136
/// call to `next()`. The associated value `remaining` is a hint that
137
137
/// indicates the number of remaining slots in the buffer at the time of
@@ -208,7 +208,7 @@ public struct AsyncStream<Element> {
208
208
/// stream.
209
209
///
210
210
/// If an `onTermination` callback is set, using task cancellation to
211
- /// terminate iteration of a `AsyncStream` results in a call to this
211
+ /// terminate iteration of an `AsyncStream` results in a call to this
212
212
/// callback.
213
213
///
214
214
/// Canceling an active iteration invokes the `onTermination` callback
@@ -238,7 +238,7 @@ public struct AsyncStream<Element> {
238
238
/// unlimited number of elements. You can also set the policy to buffer a
239
239
/// specified number of oldest or newest elements.
240
240
/// - build: A custom closure that yields values to the
241
- /// `AsyncStream`. This closure receives a `AsyncStream.Continuation`
241
+ /// `AsyncStream`. This closure receives an `AsyncStream.Continuation`
242
242
/// instance that it uses to provide elements to the stream and terminate the
243
243
/// stream when finished.
244
244
///
@@ -286,14 +286,14 @@ public struct AsyncStream<Element> {
286
286
/// - Parameters:
287
287
/// - produce: A closure that asynchronously produces elements for the
288
288
/// stream.
289
- /// - onCancel: A closure to execute when cancelling the stream's task.
289
+ /// - onCancel: A closure to execute when canceling the stream's task.
290
290
///
291
291
/// Use this convenience initializer when you have an asychronous function
292
292
/// that can produce elements for the stream, and don't want to invoke
293
293
/// a continuation manually. This initializer "unfolds" your closure into
294
294
/// an asynchronous stream. The created stream handles conformance
295
295
/// to the `AsyncSequence` protocol automatically, including termination
296
- /// (whether by cancellation or by returning `nil` from the closure to finish
296
+ /// (either by cancellation or by returning `nil` from the closure to finish
297
297
/// iteration).
298
298
///
299
299
/// The following example shows an `AsyncStream` created with this
0 commit comments