Skip to content

Commit c6f1a48

Browse files
authored
Remove unnecessary @inbounds (#103)
Similar to JuliaLang/julia#48260, this `@inbounds` hurts effects tainting.
1 parent 7356cba commit c6f1a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jet.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ end
5757
function Base.getindex(j::Jet{T, N}, i::Integer) where {T, N}
5858
(0 <= i <= N) || throw(BoundsError(j, i))
5959
i == 0 && return j.f₀
60-
@inbounds j.fₙ[i]
60+
return j.fₙ[i]
6161
end
6262

6363
function deriv(j::Jet{T, N}) where {T, N}

0 commit comments

Comments
 (0)