Skip to content

Commit 66630e2

Browse files
Update availability.jl (#57)
1 parent 8c78cc7 commit 66630e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/availability.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ end
3434
PlatformAvailability(platform; introduced = nothing, deprecated = nothing, obsoleted = nothing, unavailable = false) =
3535
PlatformAvailability(platform, introduced, deprecated, obsoleted, unavailable)
3636

37-
function is_available(f::Function, avail::PlatformAvailability)
37+
function is_available(f, avail::PlatformAvailability)
3838
return !avail.unavailable &&
3939
(isnothing(avail.obsoleted) || f() < avail.obsoleted) &&
4040
(isnothing(avail.introduced) || f() >= avail.introduced)
@@ -51,7 +51,7 @@ struct UnavailableError <: Exception
5151
symbol::Symbol
5252
msg::String
5353
end
54-
function UnavailableError(f::Function, symbol::Symbol, platform::String, avail::PlatformAvailability)
54+
function UnavailableError(f, symbol::Symbol, platform::String, avail::PlatformAvailability)
5555
msg = if avail.unavailable
5656
"is not available on $platform"
5757
elseif !isnothing(avail.obsoleted) && f() >= avail.obsoleted

0 commit comments

Comments
 (0)