Skip to content

Commit 591f7ed

Browse files
authored
[Concurrency] Fix typo in internal variable name
deadine -> deadline
1 parent f807ef9 commit 591f7ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Concurrency/TaskSleep.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,10 @@ extension Task where Success == Never, Failure == Never {
417417
///
418418
@available(SwiftStdlib 5.7, *)
419419
public static func sleep<C: Clock>(
420-
until deadine: C.Instant,
420+
until deadline: C.Instant,
421421
tolerance: C.Instant.Duration? = nil,
422422
clock: C
423423
) async throws {
424-
try await clock.sleep(until: deadine, tolerance: tolerance)
424+
try await clock.sleep(until: deadline, tolerance: tolerance)
425425
}
426426
}

0 commit comments

Comments
 (0)