diff --git a/examples/ndgrid.jl b/examples/ndgrid.jl index 8ca97a3dc01fc..688a246b8b7ed 100644 --- a/examples/ndgrid.jl +++ b/examples/ndgrid.jl @@ -18,7 +18,7 @@ end function ndgrid{T}(vs::AbstractVector{T}...) n = length(vs) sz = map(length, vs) - out = ntuple(n, i->Array(T, sz)) + out = ntuple(i->Array(T, sz), n) s = 1 for i=1:n a = out[i]::Array