Skip to content

stdlib/Concurrency/PartialAsyncTask.swift, stdlib/public/Concurrency/Task.swift: Correct typos #69910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions stdlib/public/Concurrency/PartialAsyncTask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ extension UnownedJob: CustomStringConvertible {
@available(SwiftStdlib 5.9, *)
public var description: String {
let id = _getJobTaskId(self)
/// Tasks are always assigned an unique ID, however some jobs may not have it set,
/// Tasks are always assigned a unique ID, however some jobs may not have it set,
/// and it appearing as 0 for _different_ jobs may lead to misunderstanding it as
/// being "the same 0 id job", we specifically print 0 (id not set) as nil.
if (id > 0) {
Expand Down Expand Up @@ -151,7 +151,7 @@ public struct Job: Sendable {
@_unavailableInEmbedded
public var description: String {
let id = _getJobTaskId(UnownedJob(context: self.context))
/// Tasks are always assigned an unique ID, however some jobs may not have it set,
/// Tasks are always assigned a unique ID, however some jobs may not have it set,
/// and it appearing as 0 for _different_ jobs may lead to misunderstanding it as
/// being "the same 0 id job", we specifically print 0 (id not set) as nil.
if (id > 0) {
Expand Down Expand Up @@ -220,7 +220,7 @@ public struct ExecutorJob: Sendable {
@_unavailableInEmbedded
public var description: String {
let id = _getJobTaskId(UnownedJob(context: self.context))
/// Tasks are always assigned an unique ID, however some jobs may not have it set,
/// Tasks are always assigned a unique ID, however some jobs may not have it set,
/// and it appearing as 0 for _different_ jobs may lead to misunderstanding it as
/// being "the same 0 id job", we specifically print 0 (id not set) as nil.
if (id > 0) {
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/Concurrency/Task.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ import Swift
///
/// Note that there is nothing, other than the Task's use of `self` retaining the actor,
/// And that the start method immediately returns, without waiting for the unstructured `Task` to finish.
/// So once the task completes and its the closure is destroyed, the strong reference to the "self" of the actor is also released allowing the actor to deinitialize as expected.
/// So once the task is completed and its closure is destroyed, the strong reference to the "self" of the actor is also released allowing the actor to deinitialize as expected.
///
/// Therefore, the above call will consistently result in the following output:
///
Expand Down