Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/elixir/lib/integer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ defmodule Integer do
An optional `base` to the corresponding integer can be provided.
If `base` is not given, 10 will be used.
If successful, returns a tuple in the form of `{integer, remainder_of_binary}`.
If successful, returns a tuple in the form of `{integer, remaining_string}`.
Otherwise `:error`.
Raises an error if `base` is less than 2 or more than 36.
Expand All @@ -289,6 +289,9 @@ defmodule Integer do
iex> Integer.parse("three")
:error
iex> Integer.parse("404 not found")
{404, " not found"}
iex> Integer.parse("34", 10)
{34, ""}
Expand Down
Loading