From c09bc9a1a6e23594e9c3ce9cac50f48a1b7a9178 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Sat, 23 Apr 2022 01:04:44 +0200 Subject: [PATCH] Clarify error message in `static_vector_gen` (#902) --- src/SVector.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SVector.jl b/src/SVector.jl index 7a12f294..2aefc78b 100644 --- a/src/SVector.jl +++ b/src/SVector.jl @@ -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