diff --git a/src/FillArrays.jl b/src/FillArrays.jl index b5b9476a..66dad480 100644 --- a/src/FillArrays.jl +++ b/src/FillArrays.jl @@ -236,11 +236,11 @@ end # Iterators Iterators.rest(F::AbstractFill, (_,n)) = fillsimilar(F, n <= 0 ? 0 : max(length(F)-n, 0)) function Iterators.drop(F::AbstractFill, n::Integer) - n >= 0 || throw(ArgumentError("Drop length must be nonnegative")) + n >= 0 || throw(ArgumentError("drop length must be nonnegative")) fillsimilar(F, max(length(F)-n, 0)) end function Iterators.take(F::AbstractFill, n::Integer) - n >= 0 || throw(ArgumentError("Take length must be nonnegative")) + n >= 0 || throw(ArgumentError("take length must be nonnegative")) fillsimilar(F, min(n, length(F))) end Base.rest(F::AbstractFill, s) = Iterators.rest(F, s)