Skip to content

Commit 441ef92

Browse files
vtjnashKristofferC
authored andcommitted
fix deprecation for iteration protocol (#28391)
broken by PR #28365 (7bd0ce2765)
1 parent 551e00a commit 441ef92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/essentials.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ function has_non_default_iterate(T)
867867
world = ccall(:jl_get_world_counter, UInt, ())
868868
mt = Base._methods(iterate, Tuple{T}, -1, world)
869869
# Check if this is the above method
870-
if (mt[1][3].file == @__FILE_SYMBOL__) && (mt[1][3].line == old_iterate_line_prev + 1)
870+
if (mt[1][3].file == @__FILE_SYMBOL__) && (mt[1][3].line == old_iterate_line_prev + 2)
871871
return false
872872
end
873873
return true

0 commit comments

Comments
 (0)