Skip to content

Commit c09bc9a

Browse files
authored
Clarify error message in static_vector_gen (JuliaArrays#902)
1 parent 380270d commit c09bc9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SVector.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function static_vector_gen(::Type{SV}, @nospecialize(ex), mod::Module) where {SV
118118
error("@$SV only supports the zeros(), ones(), rand(), randn() and randexp() functions.")
119119
end
120120
else
121-
error("Use @$SV [a,b,c], @$SV Type[a,b,c] or a comprehension like [f(i) for i = i_min:i_max]")
121+
error("Use @$SV [a,b,c], @$SV Type[a,b,c] or a comprehension like @$SV [f(i) for i = i_min:i_max]")
122122
end
123123
end
124124

0 commit comments

Comments
 (0)