Skip to content

Commit 6056d2c

Browse files
committed
Merge pull request #40019 from amartini51/guard_else_84895831
(cherry picked from commit f5f27d5)
1 parent ba366e8 commit 6056d2c

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)