Skip to content

Commit 544466a

Browse files
eksperimentaljosevalim
authored andcommitted
Fix t:Range.t/2 (#10833)
We need to be explicit and define the step field, otherwise IEx and ExDoc will spec it as "term()" (1)> t Range.t/2 @type t(first, last) :: %Range{first: first, last: last, step: term()
1 parent 385d2cd commit 544466a

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
@@ -96,7 +96,7 @@ defmodule Range do
9696
@type last :: integer
9797
@type step :: pos_integer | neg_integer
9898
@type t :: %__MODULE__{first: first, last: last, step: step}
99-
@type t(first, last) :: %__MODULE__{first: first, last: last}
99+
@type t(first, last) :: %__MODULE__{first: first, last: last, step: step}
100100

101101
@doc """
102102
Creates a new range.

0 commit comments

Comments
 (0)