Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Jun 2, 2024
1 parent a5df8ad commit 25a5a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ end

function (f::Fix{F,N,T})(args::Vararg{Any,M}) where {F,N,T,M}
@inline
M < N - 1 || M == 0 || throw(ArgumentError("expected at least $(N-1) arguments to a `Fix` function with `N=$(N)`"))
M < N - 1 || N == 1 || throw(ArgumentError("expected at least $(N-1) arguments to a `Fix` function with `N=$(N)`"))
return f.f(args[begin:begin+(N-2)]..., f.x..., args[begin+(N-1):end]...)
end

Expand Down

0 comments on commit 25a5a09

Please sign in to comment.