Skip to content

Commit 5d6c179

Browse files
committed
Add missing 'else' to guard statements.
Fixes <rdar://84895831>.
1 parent 57ad1f1 commit 5d6c179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Concurrency/TaskGroup.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import Swift
3232
/// If you need more control or only a few results,
3333
/// you can call `next()` directly:
3434
///
35-
/// guard let first = await group.next() {
35+
/// guard let first = await group.next() else {
3636
/// group.cancelAll()
3737
/// return 0
3838
/// }
@@ -106,7 +106,7 @@ public func withTaskGroup<ChildTaskResult, GroupResult>(
106106
/// If you need more control or only a few results,
107107
/// you can call `next()` directly:
108108
///
109-
/// guard let first = await group.next() {
109+
/// guard let first = await group.next() else {
110110
/// group.cancelAll()
111111
/// return 0
112112
/// }

0 commit comments

Comments
 (0)