Skip to content

Commit

Permalink
Change typeof(x) <: y to x isa y
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepijn de Vos committed Nov 2, 2023
1 parent 735927e commit 7400fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MATLABDiffEq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function DiffEqBase.__solve(
f = prob.f
u0 = prob.u0

if typeof(saveat) <: Number
if saveat isa Number
tspan = Array(prob.tspan[1]:saveat:prob.tspan[2])
tspan = sort(unique([prob.tspan[1]; tspan; prob.tspan[2]]))
else
Expand Down

0 comments on commit 7400fb7

Please sign in to comment.