fix availability of record(:Duration) API (#146)

This commit is contained in:
Konrad `ktoso` Malawski 2024-05-15 18:08:10 +09:00 committed by GitHub
parent 0124d9ad5c
commit ce594e71e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ extension Timer {
///
/// - Parameters:
/// - duration: The `Duration` to record.
@available(macOS 13, iOS 16, tvOS 15, watchOS 8, *)
@available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
@inlinable
public func record(duration: Duration) {
// `Duration` doesn't have a nice way to convert it nanoseconds or seconds,