Skip to content

Commit

Permalink
fix old style vcat warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebolewski committed May 28, 2015
1 parent 572a892 commit ec37d6d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions base/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ const _oldstyle_array_vcat_ = true
if _oldstyle_array_vcat_
function oldstyle_vcat_warning(n::Int)
if n == 1
before = "a"
before = "[a]"
after = "collect(a)"
elseif n == 2
before = "a,b"
after = "a;b"
before = "[a,b]"
after = "[a;b]"
else
before = "a,b,..."
after = "a;b;..."
before = "[a,b,...]"
after = "[a;b;...]"
end
depwarn("[$before] concatenation is deprecated; use [$after] instead", :vect)
depwarn("$before concatenation is deprecated; use $after instead", :vect)
end
function vect(A::AbstractArray...)
oldstyle_vcat_warning(length(A))
Expand Down

0 comments on commit ec37d6d

Please sign in to comment.