Skip to content

Commit b213013

Browse files
Swingcloudjosevalim
authored andcommitted
Fix range first and last description in module doc (#12169)
1 parent 7e76039 commit b213013

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
@@ -24,7 +24,7 @@ defmodule Range do
2424
2525
When defining a range without a step, the step will be
2626
defined based on the first and last position of the
27-
range, If `first >= last`, it will be an increasing range
27+
range, If `last >= first`, it will be an increasing range
2828
with a step of 1. Otherwise, it is a decreasing range.
2929
Note however implicit decreasing ranges are deprecated.
3030
Therefore, if you need a decreasing range from `3` to `1`,

0 commit comments

Comments
 (0)