Skip to content

Commit 5a03646

Browse files
committed
fix typo
1 parent 608efb8 commit 5a03646

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/besseli.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ function besseli0(x::T) where T <: Union{Float32, Float64}
1313
end
1414
end
1515
function besseli0x(x::T) where T <: Union{Float32, Float64}
16-
T = Float64
1716
x = abs(x)
1817
if x <= 8
1918
y = muladd(x, T(.5), T(-2))
@@ -35,8 +34,7 @@ function besseli1(x::T) where T <: Union{Float32, Float64}
3534
end
3635
return z
3736
end
38-
function besseli1x(x::Float64)
39-
T = Float64
37+
function besseli1x(x::T) where T <: Union{Float32, Float64}
4038
z = abs(x)
4139
if z <= 8
4240
y = muladd(x, T(.5), T(-2))

0 commit comments

Comments
 (0)