Skip to content

Commit

Permalink
Fix printing of indices in the depwarn for to_indexes (#20960)
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy authored and KristofferC committed Mar 10, 2017
1 parent 4521e6b commit 3b5a0eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,8 @@ function getindex(A::LogicalIndex, i::Int)
first(Iterators.drop(A, i-1))
end
function to_indexes(I...)
depwarn("to_indexes is deprecated; pass both the source array `A` and indices as `to_indices(A, $(I...))` instead.", :to_indexes)
Istr = join(I, ", ")
depwarn("to_indexes is deprecated; pass both the source array `A` and indices as `to_indices(A, $Istr)` instead.", :to_indexes)
map(_to_index, I)
end
_to_index(i) = to_index(I)
Expand Down

0 comments on commit 3b5a0eb

Please sign in to comment.