Skip to content

Commit b0fd4df

Browse files
authored
Merge pull request #41097 from ole/cancellationerror-doccomments
2 parents a12a966 + b32ae80 commit b0fd4df

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)