Skip to content

Commit 5fbdd81

Browse files
authored
Minor mistake in group docs comment cocs snippet
We say in a comment here that we print the error and cancel, but we don't actually have the print below. This PR adds that missing print in the docs snippet.
1 parent 8dc2a73 commit 5fbdd81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/Concurrency/TaskGroup.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ public struct ThrowingTaskGroup<ChildTaskResult: Sendable, Failure: Error> {
632632
/// } catch {
633633
/// // other errors though we print and cancel the group,
634634
/// // and all of the remaining child tasks within it.
635+
/// print("Error: \(error)")
635636
/// group.cancelAll()
636637
/// }
637638
/// }

0 commit comments

Comments
 (0)