Skip to content

Commit da34a4e

Browse files
authored
Merge pull request #66912 from apple/ktoso-patch-15
2 parents 253d8fb + 0a2defe commit da34a4e

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
@@ -149,14 +149,14 @@ public func withTaskGroup<ChildTaskResult, GroupResult>(
149149
/// For example, in the code below,
150150
/// nothing is canceled and the group doesn't throw an error:
151151
///
152-
/// try await withThrowingTaskGroup { group in
152+
/// try await withThrowingTaskGroup(of: Void.self) { group in
153153
/// group.addTask { throw SomeError() }
154154
/// }
155155
///
156156
/// In contrast, this example throws `SomeError`
157157
/// and cancels all of the tasks in the group:
158158
///
159-
/// try await withThrowingTaskGroup { group in
159+
/// try await withThrowingTaskGroup(of: Void.self) { group in
160160
/// group.addTask { throw SomeError() }
161161
/// try await group.next()
162162
/// }

0 commit comments

Comments
 (0)