Skip to content

Commit fbcf868

Browse files
committed
Correct spelling errors and doubled word.
1 parent a0e58c6 commit fbcf868

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

stdlib/public/Concurrency/GlobalActor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Swift
1515
/// A type that represents a globally-unique actor that can be used to isolate
1616
/// various declarations anywhere in the program.
1717
///
18-
/// A type that conforms to the `GlobalActor` protocol and is marked with the
18+
/// A type that conforms to the `GlobalActor` protocol and is marked with
1919
/// the `@globalActor` attribute can be used as a custom attribute. Such types
2020
/// are called global actor types, and can be applied to any declaration to
2121
/// specify that such types are isolated to that global actor type. When using

stdlib/public/Concurrency/Task.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ extension Task {
9999
/// creating the task with the correct priority,
100100
/// depending on the executor's scheduling details.
101101
///
102-
/// If the task throws an error, this property propogates that error.
102+
/// If the task throws an error, this property propagates that error.
103103
/// Tasks that respond to cancellation by throwing `Task.CancellationError`
104-
/// have that error propogated here upon cancellation.
104+
/// have that error propagated here upon cancellation.
105105
///
106106
/// - Returns: The task's result.
107107
public var value: Success {
@@ -595,7 +595,7 @@ extension Task where Failure == Error {
595595
/// Runs the given throwing operation asynchronously
596596
/// as part of a new top-level task.
597597
///
598-
/// If the operation throws an error, this method propogates that error.
598+
/// If the operation throws an error, this method propagates that error.
599599
///
600600
/// Don't use a detached task if it's possible
601601
/// to model the operation using structured concurrency features like child tasks.

stdlib/public/Concurrency/TaskGroup.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public func withTaskGroup<ChildTaskResult, GroupResult>(
133133
/// Throwing an error in one of the tasks of a task group
134134
/// doesn't immediately cancel the other tasks in that group.
135135
/// However,
136-
/// if you call `next()` in the task group and propogate its error,
136+
/// if you call `next()` in the task group and propagate its error,
137137
/// all other tasks are canceled.
138138
/// For example, in the code below,
139139
/// nothing is canceled and the group doesn't throw an error:
@@ -744,7 +744,7 @@ extension TaskGroup: AsyncSequence {
744744
/// appear in the order that the tasks *completed*,
745745
/// not in the order that those tasks were added to the task group.
746746
/// After this method returns `nil`,
747-
/// this iterater is guaranteed to never produce more values.
747+
/// this iterator is guaranteed to never produce more values.
748748
///
749749
/// For more information about the iteration order and semantics,
750750
/// see `TaskGroup.next()`.
@@ -831,7 +831,7 @@ extension ThrowingTaskGroup: AsyncSequence {
831831
/// appear in the order that the tasks *completed*,
832832
/// not in the order that those tasks were added to the task group.
833833
/// After this method returns `nil`,
834-
/// this iterater is guaranteed to never produce more values.
834+
/// this iterator is guaranteed to never produce more values.
835835
///
836836
/// For more information about the iteration order and semantics,
837837
/// see `ThrowingTaskGroup.next()`

0 commit comments

Comments
 (0)