Skip to content

Commit 391eee0

Browse files
committed
[Concurrency] Fix some typos in PartialAsyncTask
1 parent 330af0b commit 391eee0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

stdlib/public/Concurrency/PartialAsyncTask.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal func _swiftJobRun(_ job: UnownedJob,
2424
// ==== -----------------------------------------------------------------------
2525
// MARK: UnownedJob
2626

27-
/// A unit of scheduleable work.
27+
/// A unit of schedulable work.
2828
///
2929
/// Unless you're implementing a scheduler,
3030
/// you don't generally interact with jobs directly.
@@ -116,7 +116,7 @@ extension UnownedJob: CustomStringConvertible {
116116

117117
/// Deprecated equivalent of ``ExecutorJob``.
118118
///
119-
/// A unit of scheduleable work.
119+
/// A unit of schedulable work.
120120
///
121121
/// Unless you're implementing a scheduler,
122122
/// you don't generally interact with jobs directly.
@@ -172,7 +172,7 @@ extension Job {
172172
/// The passed in executor reference is used to establish the executor context for the job,
173173
/// and should be the same executor as the one semantically calling the `runSynchronously` method.
174174
///
175-
/// This operation consumes the job, preventing it accidental use after it has ben run.
175+
/// This operation consumes the job, preventing it accidental use after it has been run.
176176
///
177177
/// Converting a `ExecutorJob` to an ``UnownedJob`` and invoking ``UnownedJob/runSynchronously(_:)` on it multiple times is undefined behavior,
178178
/// as a job can only ever be run once, and must not be accessed after it has been run.
@@ -185,7 +185,7 @@ extension Job {
185185
}
186186
}
187187

188-
/// A unit of scheduleable work.
188+
/// A unit of schedulable work.
189189
///
190190
/// Unless you're implementing a scheduler,
191191
/// you don't generally interact with jobs directly.
@@ -240,7 +240,7 @@ extension ExecutorJob {
240240
/// The passed in executor reference is used to establish the executor context for the job,
241241
/// and should be the same executor as the one semantically calling the `runSynchronously` method.
242242
///
243-
/// This operation consumes the job, preventing it accidental use after it has ben run.
243+
/// This operation consumes the job, preventing it accidental use after it has been run.
244244
///
245245
/// Converting a `ExecutorJob` to an ``UnownedJob`` and invoking ``UnownedJob/runSynchronously(_:)` on it multiple times is undefined behavior,
246246
/// as a job can only ever be run once, and must not be accessed after it has been run.
@@ -287,7 +287,7 @@ extension TaskPriority {
287287
@available(SwiftStdlib 5.9, *)
288288
public init?(_ p: JobPriority) {
289289
guard p.rawValue != 0 else {
290-
/// 0 is "undefined"
290+
// 0 is "undefined"
291291
return nil
292292
}
293293
self = TaskPriority(rawValue: p.rawValue)
@@ -325,7 +325,7 @@ extension JobPriority: Comparable {
325325
}
326326

327327
// ==== -----------------------------------------------------------------------
328-
// MARK: UncheckedContinuation
328+
// MARK: UnsafeContinuation
329329

330330
/// A mechanism to interface
331331
/// between synchronous and asynchronous code,

0 commit comments

Comments
 (0)