Skip to content

Commit d101b39

Browse files
committed
The closure isn't the only place the closure can be called.
Per tech review from @jckarter
1 parent 55e8ec1 commit d101b39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
/// - body: A closure that takes an `UnsafeContinuation` parameter.
282282
/// The closure must resume the continuation exactly once.
283283
///
284-
/// If the closure calls `resume(throwing:)` on the continuation,
284+
/// If `resume(throwing:)` is called on the continuation,
285285
/// this method thows that error.
286286
@available(SwiftStdlib 5.5, *)
287287
public func withCheckedThrowingContinuation<T>(

stdlib/public/Concurrency/PartialAsyncTask.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ internal func _resumeUnsafeThrowingContinuationWithError<T>(
243243
///
244244
/// - Returns: The value passed to the continuation by the closure.
245245
///
246-
/// If the closure calls `resume(throwing:)` on the continuation,
246+
/// If `resume(throwing:)` is called on the continuation,
247247
/// this method thows that error.
248248
@available(SwiftStdlib 5.5, *)
249249
@_alwaysEmitIntoClient

0 commit comments

Comments
 (0)