Skip to content

Commit f245ecf

Browse files
committed
[TaskGroup] Fix typo in code snippet
1 parent 0135623 commit f245ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/TaskGroup.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
545545
/// to wait for all the child tasks to complete,
546546
/// collecting the values they returned:
547547
///
548-
/// while let first = try await group.next() {
548+
/// while let value = try await group.next() {
549549
/// collected += value
550550
/// }
551551
/// return collected

0 commit comments

Comments
 (0)