Skip to content

Commit 736be73

Browse files
DOCS: Add missing periods (#75407)
* Add missing period at end of sentence * Add missing period Co-authored-by: LamTrinh.Dev <[email protected]> --------- Co-authored-by: LamTrinh.Dev <[email protected]>
1 parent 1901aa7 commit 736be73

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

stdlib/public/Concurrency/DiscardingTaskGroup.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import Swift
5252
/// If you call `addTask(priority:operation:)` to create a new task in a canceled group,
5353
/// that task is immediately canceled after creation.
5454
/// Alternatively, you can call `asyncUnlessCancelled(priority:operation:)`,
55-
/// which doesn't create the task if the group has already been canceled
55+
/// which doesn't create the task if the group has already been canceled.
5656
/// Choosing between these two functions
5757
/// lets you control how to react to cancellation within a group:
5858
/// some child tasks need to run regardless of cancellation,
@@ -550,7 +550,7 @@ extension DiscardingTaskGroup: Sendable { }
550550
/// If you call `addTask(priority:operation:)` to create a new task in a canceled group,
551551
/// that task is immediately canceled after creation.
552552
/// Alternatively, you can call `asyncUnlessCancelled(priority:operation:)`,
553-
/// which doesn't create the task if the group has already been canceled
553+
/// which doesn't create the task if the group has already been canceled.
554554
/// Choosing between these two functions
555555
/// lets you control how to react to cancellation within a group:
556556
/// some child tasks need to run regardless of cancellation,
@@ -713,7 +713,7 @@ public func _unsafeInheritExecutor_withThrowingDiscardingTaskGroup<GroupResult>(
713713
/// however a discarding group cannot poll child tasks for results and therefore assumes that child
714714
/// task throws are an indication of a group wide failure. In order to avoid such behavior,
715715
/// use a ``DiscardingTaskGroup`` instead of a throwing one, or catch specific errors in
716-
/// operations submitted using `addTask`
716+
/// operations submitted using `addTask`.
717717
///
718718
/// Since a `ThrowingDiscardingTaskGroup` is a structured concurrency primitive, cancellation is
719719
/// automatically propagated through all of its child-tasks (and their child

stdlib/public/Concurrency/TaskGroup.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import Swift
5050
/// If you call `addTask(priority:operation:)` to create a new task in a canceled group,
5151
/// that task is immediately canceled after creation.
5252
/// Alternatively, you can call `addTaskUnlessCancelled(priority:operation:)`,
53-
/// which doesn't create the task if the group has already been canceled
53+
/// which doesn't create the task if the group has already been canceled.
5454
/// Choosing between these two functions
5555
/// lets you control how to react to cancellation within a group:
5656
/// some child tasks need to run regardless of cancellation,
@@ -161,7 +161,7 @@ public func _unsafeInheritExecutor_withTaskGroup<ChildTaskResult, GroupResult>(
161161
/// If you call `addTask(priority:operation:)` to create a new task in a canceled group,
162162
/// that task is immediately canceled after creation.
163163
/// Alternatively, you can call `addTaskUnlessCancelled(priority:operation:)`,
164-
/// which doesn't create the task if the group has already been canceled
164+
/// which doesn't create the task if the group has already been canceled.
165165
/// Choosing between these two functions
166166
/// lets you control how to react to cancellation within a group:
167167
/// some child tasks need to run regardless of cancellation,

0 commit comments

Comments
 (0)