Skip to content

Commit 3b5a0eb

Browse files
timholyKristofferC
authored andcommitted
Fix printing of indices in the depwarn for to_indexes (#20960)
1 parent 4521e6b commit 3b5a0eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/deprecated.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,8 @@ function getindex(A::LogicalIndex, i::Int)
478478
first(Iterators.drop(A, i-1))
479479
end
480480
function to_indexes(I...)
481-
depwarn("to_indexes is deprecated; pass both the source array `A` and indices as `to_indices(A, $(I...))` instead.", :to_indexes)
481+
Istr = join(I, ", ")
482+
depwarn("to_indexes is deprecated; pass both the source array `A` and indices as `to_indices(A, $Istr)` instead.", :to_indexes)
482483
map(_to_index, I)
483484
end
484485
_to_index(i) = to_index(I)

0 commit comments

Comments
 (0)