Skip to content

Commit 21c1c2a

Browse files
committed
fix typo
1 parent 5a4b4b3 commit 21c1c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/besselj.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ end
3636
function besselj0(x::Float32)
3737
T = Float32
3838
x = abs(x)
39-
iszero(x) && return zero(x)
39+
iszero(x) && return one(x)
4040
isinf(x) && return zero(x)
4141

4242
if x <= 2.0f0

0 commit comments

Comments
 (0)