Skip to content

Commit

Permalink
Clarify error message in static_vector_gen (JuliaArrays#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp authored Apr 22, 2022
1 parent 380270d commit c09bc9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SVector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function static_vector_gen(::Type{SV}, @nospecialize(ex), mod::Module) where {SV
error("@$SV only supports the zeros(), ones(), rand(), randn() and randexp() functions.")
end
else
error("Use @$SV [a,b,c], @$SV Type[a,b,c] or a comprehension like [f(i) for i = i_min:i_max]")
error("Use @$SV [a,b,c], @$SV Type[a,b,c] or a comprehension like @$SV [f(i) for i = i_min:i_max]")
end
end

Expand Down

0 comments on commit c09bc9a

Please sign in to comment.