Skip to content

Commit f0ed2d4

Browse files
committed
Fix Version.pre typespec
Signed-off-by: Eric Meadows-Jönsson <[email protected]>
1 parent d23a46f commit f0ed2d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/elixir/lib/version.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ defmodule Version do
5050
be expressed as:
5151
5252
"~> 2.0.0"
53-
53+
5454
`~>` will never include pre-release versions of its upper bound.
5555
It can also be used to set an upper bound on only the major
5656
version part. See the table below for `~>` requirements and
5757
their corresponding translation.
58-
58+
5959
`~>` | Translation
6060
:------------- | :---------------------
6161
`~> 2.0.0` | `>= 2.0.0 and < 2.1.0`
@@ -74,7 +74,7 @@ defmodule Version do
7474
@type major :: String.t | non_neg_integer
7575
@type minor :: non_neg_integer | nil
7676
@type patch :: non_neg_integer | nil
77-
@type pre :: [String.t]
77+
@type pre :: [String.t | non_neg_integer]
7878
@type build :: String.t | nil
7979
@type matchable :: {major :: major,
8080
minor :: minor,

0 commit comments

Comments
 (0)