Skip to content

Commit bf61199

Browse files
[Concurrency] fix documentation typos in TaskGroup.swift (#82291)
1 parent 2a96825 commit bf61199

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
@@ -410,7 +410,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
410410
/// return collected
411411
///
412412
/// Awaiting on an empty group
413-
/// immediate returns `nil` without suspending.
413+
/// immediately returns `nil` without suspending.
414414
///
415415
/// You can also use a `for`-`await`-`in` loop to collect results of a task group:
416416
///
@@ -469,7 +469,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
469469
///
470470
/// At the start of the body of a `withTaskGroup(of:returning:body:)` call,
471471
/// the task group is always empty.
472-
/// It`s guaranteed to be empty when returning from that body
472+
/// It's guaranteed to be empty when returning from that body
473473
/// because a task group waits for all child tasks to complete before returning.
474474
///
475475
/// - Returns: `true` if the group has no pending tasks; otherwise `false`.

0 commit comments

Comments
 (0)