Skip to content

Commit

Permalink
Improve spec in Integer.parse/2 (elixir-lang#10776)
Browse files Browse the repository at this point in the history
  • Loading branch information
eksperimental authored Mar 9, 2021
1 parent abbb798 commit 5dbd1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir/lib/integer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ defmodule Integer do
** (ArgumentError) invalid base 38
"""
@spec parse(binary, 2..36) :: {integer, binary} | :error
@spec parse(binary, 2..36) :: {integer, remainder_of_binary :: binary} | :error
def parse(binary, base \\ 10)

def parse(_binary, base) when base not in 2..36 do
Expand Down

0 comments on commit 5dbd1ab

Please sign in to comment.