JuliaFolds2 / ChunkSplitters.jl

Splitting collections into chunks
https://juliafolds2.github.io/ChunkSplitters.jl/
MIT License
50 stars 7 forks source link

fix small typo in error message #20

Closed trahflow closed 9 months ago

trahflow commented 9 months ago

Just a quick fix of a Typo. Was giving the following error message:

julia> using ChunkSplitters

julia> x = randn(10);

julia> chunks(x; n=4, split=:nonsense)
ERROR: ArgumentError: split must be one of nonsense
Stacktrace:
 [1] #chunks#1
   @ ChunkSplitters ~/.julia/dev/ChunkSplitters/src/ChunkSplitters.jl:70 [inlined]
 [2] top-level scope
   @ REPL[8]:1
lmiq commented 9 months ago

Thanks! Note that the master version of the package is currently a breaking version relative to the docs. I don't how did you find this issue, but you probably shouldn't be using the master version :-).

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (a4783c4) 96.55% compared to head (fc09962) 96.55%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #20 +/- ## ======================================= Coverage 96.55% 96.55% ======================================= Files 1 1 Lines 87 87 ======================================= Hits 84 84 Misses 3 3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

trahflow commented 9 months ago

Yup. Just read through the code and stumbled across it. Thought I might as well fix it...

lmiq commented 9 months ago

Of course, thanks!