mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 11:45:31 -05:00
fix: correct module name in Invalid_argument for CCInt.range_by
This commit is contained in:
parent
b06155f05b
commit
102ad62075
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ let range_by ~step i j yield =
|
|||
)
|
||||
in
|
||||
if step = 0 then
|
||||
raise (Invalid_argument "CCList.range_by")
|
||||
raise (Invalid_argument "CCInt.range_by")
|
||||
else if (if step > 0 then i>j else i<j) then ()
|
||||
else range i ((j-i)/step*step + i) yield
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue