@@ -24,7 +24,7 @@ shape_string(inds::CartesianIndex) = join(Tuple(inds), '×')
2424 iter = :(iterate (gen,st))
2525 end
2626 push! (stmts, :($ iter === nothing || generator_too_long_error ($ inds)))
27- push! (stmts, :(SA ($ (args... ))))
27+ push! (stmts, :(SA (( $ (args... ), ))))
2828 Expr (:block , stmts... )
2929end
3030"""
@@ -92,7 +92,7 @@ function cat_any!(out, dims_before, dims_after, args::Vector{Any})
9292 @views for arg in args
9393 len = _cat_size (arg, catdim)
9494 dest = out[dims_before... , i+ 1 : i+ len, dims_after... ]
95- if arg isa AbstractArray
95+ if arg isa AbstractArray
9696 copyto! (dest, arg)
9797 else
9898 dest[] = arg
@@ -171,7 +171,7 @@ function static_array_gen(::Type{SA}, @nospecialize(ex), mod::Module) where {SA}
171171 rngs = Any[Core. eval (mod, ex. args[i+ 1 ]. args[2 ]) for i = 1 : n_rng]
172172 exprs = (:(f ($ (j... ))) for j in Iterators. product (rngs... ))
173173 return quote
174- let
174+ let
175175 f ($ (escall (rng_args). .. )) = $ (esc (ex. args[1 ]))
176176 $ SA {$Tuple{$(size(exprs)...)}} ($ tuple ($ (exprs... )))
177177 end
@@ -190,7 +190,7 @@ function static_array_gen(::Type{SA}, @nospecialize(ex), mod::Module) where {SA}
190190 rngs = Any[Core. eval (mod, ex. args[i+ 1 ]. args[2 ]) for i = 1 : n_rng]
191191 exprs = (:(f ($ (j... ))) for j in Iterators. product (rngs... ))
192192 return quote
193- let
193+ let
194194 f ($ (escall (rng_args). .. )) = $ (esc (ex. args[1 ]))
195195 $ SA {$Tuple{$(size(exprs)...)},$T} ($ tuple ($ (exprs... )))
196196 end
@@ -236,7 +236,7 @@ It supports:
236236
2372372. comprehensions
238238!!! note
239- The range of a comprehension is evaluated at global scope by the macro, and must be
239+ The range of a comprehension is evaluated at global scope by the macro, and must be
240240 made of combinations of literal values, functions, or global variables.
241241
2422423. initialization functions
0 commit comments