Skip to content

Commit 0089a40

Browse files
sasa1977josevalim
authored andcommitted
Fix typespec (#8207)
1 parent 549745f commit 0089a40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/elixir/lib/version.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ defmodule Version do
9494
@type patch :: non_neg_integer | nil
9595
@type pre :: [String.t() | non_neg_integer]
9696
@type build :: String.t() | nil
97-
@type matchable :: {major :: major, minor :: minor, patch :: patch, pre :: pre}
97+
@type matchable ::
98+
{major :: major, minor :: minor, patch :: patch, pre :: pre,
99+
build_parts :: [String.t()]}
98100
@type t :: %__MODULE__{major: major, minor: minor, patch: patch, pre: pre, build: build}
99101

100102
defmodule Requirement do

0 commit comments

Comments
 (0)