Skip to content

Commit 7aa242f

Browse files
authored
Merge pull request JuliaCollections#126 from sjkelly/sjk/JET2
fix prevsibling
2 parents 583edea + 96d0ff1 commit 7aa242f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/indexing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function nextsibling(idx::IndexNode)
133133
isnothing(sidx) ? nothing : IndexNode(idx.tree, sidx)
134134
end
135135

136-
function prevsibling(rn::IndexNode)
136+
function prevsibling(idx::IndexNode)
137137
sidx = prevsiblingindex(idx.tree, idx.index)
138138
isnothing(sidx) ? nothing : IndexNode(idx.tree, sidx)
139139
end

0 commit comments

Comments
 (0)