Skip to content

Commit a33eaf6

Browse files
ktosoole
andauthored
Remove Task.CancellationError in doc comments (#41107)
Task.CancellationError has been renamed to CancellationError. Fix two doc comments that still used the old name. Co-authored-by: Ole Begemann <[email protected]>
1 parent 0984180 commit a33eaf6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/Concurrency/Task.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ extension Task {
100100
/// depending on the executor's scheduling details.
101101
///
102102
/// If the task throws an error, this property propagates that error.
103-
/// Tasks that respond to cancellation by throwing `Task.CancellationError`
103+
/// Tasks that respond to cancellation by throwing `CancellationError`
104104
/// have that error propagated here upon cancellation.
105105
///
106106
/// - Returns: The task's result.

stdlib/public/Concurrency/TaskCancellation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ extension Task where Success == Never, Failure == Never {
7272
extension Task where Success == Never, Failure == Never {
7373
/// Throws an error if the task was canceled.
7474
///
75-
/// The error is always an instance of `Task.CancellationError`.
75+
/// The error is always an instance of `CancellationError`.
7676
///
7777
/// - SeeAlso: `isCancelled()`
7878
public static func checkCancellation() throws {

0 commit comments

Comments
 (0)