Skip to content

Commit c7ef5a5

Browse files
mprattimholy
authored andcommitted
Fix typo in error message (#138)
1 parent e2a0380 commit c7ef5a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extrapolation/extrap_prep.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function extrap_prep{T,N}(::Type{T}, n::Val{N})
6161
return Expr(:block, exprs...)
6262
end
6363
function extrap_prep{N,T<:Tuple}(::Type{T}, n::Val{N})
64-
length(T.parameters) == N || return :(throw(ArgumentError("The $N-dimensional extrap configuration $T is not supported - must be a tuple of length $N (was length $(lenght(T.parameters)))")))
64+
length(T.parameters) == N || return :(throw(ArgumentError("The $N-dimensional extrap configuration $T is not supported - must be a tuple of length $N (was length $(length(T.parameters)))")))
6565
exprs = Expr[]
6666
for d in 1:N
6767
Tdim = T.parameters[d]
@@ -84,4 +84,4 @@ function extrap_prep{S,T,N,d}(::Type{Tuple{S,T}}, n::Val{N}, dim::Val{d})
8484
$(extrap_prep(S, n, dim, Val{:lo}()))
8585
$(extrap_prep(T, n, dim, Val{:hi}()))
8686
end
87-
end
87+
end

0 commit comments

Comments
 (0)