Skip to content

Commit 1416a74

Browse files
Changhyun-Kylektoso
authored andcommitted
[Concurrency] fix documentation typos in TaskGroup.swift (#82291)
1 parent a349e64 commit 1416a74

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
@@ -364,7 +364,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
364364
/// return collected
365365
///
366366
/// Awaiting on an empty group
367-
/// immediate returns `nil` without suspending.
367+
/// immediately returns `nil` without suspending.
368368
///
369369
/// You can also use a `for`-`await`-`in` loop to collect results of a task group:
370370
///
@@ -423,7 +423,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
423423
///
424424
/// At the start of the body of a `withTaskGroup(of:returning:body:)` call,
425425
/// the task group is always empty.
426-
/// It`s guaranteed to be empty when returning from that body
426+
/// It's guaranteed to be empty when returning from that body
427427
/// because a task group waits for all child tasks to complete before returning.
428428
///
429429
/// - Returns: `true` if the group has no pending tasks; otherwise `false`.

0 commit comments

Comments
 (0)