Skip to content

Commit fe6fed6

Browse files
authored
Fix docs regarding empty ranges on negative steps (#10821)
1 parent bba2902 commit fe6fed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/range.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ defmodule Range do
5050
from `first` to `last` decreasing by `step` where all values
5151
`v` must be `first >= v and v >= last`. Therefore, a range
5252
`0..10//-1` is an empty range because there is no value `v`
53-
that is `10 >= v and v >= 0`.
53+
that is `0 >= v and v >= 10`.
5454
5555
## Representation
5656

0 commit comments

Comments
 (0)