Skip to content

Commit 8201bda

Browse files
author
Chris Adamson
committed
Reflow code snippet in doc comment.
1 parent 83624ef commit 8201bda

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stdlib/public/Concurrency/AsyncStream.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ public struct AsyncStream<Element> {
243243
/// a private `keepRunning` variable becomes `false`, the inner `while` loop
244244
/// exits and the stream finishes.
245245
///
246-
/// let stream = AsyncStream<Int>(
247-
/// Int.self, bufferingPolicy: .bufferingNewest(5)) { continuation in
246+
/// let stream = AsyncStream<Int>(Int.self,
247+
/// bufferingPolicy: .bufferingNewest(5)) { continuation in
248248
/// Task.detached {
249249
/// while keepRunning {
250250
/// await Task.sleep(1 * 1_000_000_000)

stdlib/public/Concurrency/AsyncThrowingStream.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ public struct AsyncThrowingStream<Element, Failure: Error> {
274274
/// exits and the stream finishes. If the random number is divisble by 5 with
275275
/// no remainder, the stream throws a `MyRandomNumberError`.
276276
///
277-
/// let stream = AsyncThrowingStream<Int, Error>(
278-
/// Int.self, bufferingPolicy: .bufferingNewest(5)) { continuation in
277+
/// let stream = AsyncThrowingStream<Int, Error>(Int.self,
278+
/// bufferingPolicy: .bufferingNewest(5)) { continuation in
279279
/// Task.detached {
280280
/// while (keepRunning) {
281281
/// await Task.sleep(1 * 1_000_000_000)

0 commit comments

Comments
 (0)