Skip to content

Commit

Permalink
Lowercase in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Oct 1, 2024
1 parent 8d513ef commit 2a8c2d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FillArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2a8c2d9

Please sign in to comment.