From 25a5a09ca2547c6ca75e656c4d36ae8ed629f08c Mon Sep 17 00:00:00 2001 From: MilesCranmer Date: Sun, 2 Jun 2024 21:45:09 +0100 Subject: [PATCH] typo --- base/operators.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/operators.jl b/base/operators.jl index bc92190c01a701..d5391bcaf5a6fd 100644 --- a/base/operators.jl +++ b/base/operators.jl @@ -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