Skip to content

Commit 6c0c39e

Browse files
authored
[Docs] withCheckedThrowingContinuation body fix
`withCheckedThrowingContinuation`'s `body` says that it takes an `UnsafeContinuation`... seems like a copy/paste error.
1 parent 31a1c08 commit 6c0c39e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/CheckedContinuation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public func withCheckedContinuation<T>(
281281
/// - function: A string identifying the declaration that is the notional
282282
/// source for the continuation, used to identify the continuation in
283283
/// runtime diagnostics related to misuse of this continuation.
284-
/// - body: A closure that takes an `UnsafeContinuation` parameter.
284+
/// - body: A closure that takes a `CheckedContinuation` parameter.
285285
/// You must resume the continuation exactly once.
286286
///
287287
/// If `resume(throwing:)` is called on the continuation,

0 commit comments

Comments
 (0)