Skip to content

Commit

Permalink
Fix the spec for OptionParser.parse_head!/2
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Jul 3, 2016
1 parent 652c408 commit d75cad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir/lib/option_parser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ defmodule OptionParser do
--verbose : Missing argument of type integer
--source : Expected type integer, got "lib"
"""
@spec parse_head!(argv, options) :: {parsed, argv, errors} | no_return
@spec parse_head!(argv, options) :: {parsed, argv} | no_return
def parse_head!(argv, opts \\ []) when is_list(argv) and is_list(opts) do
case parse_head(argv, opts) do
{parsed, args, []} -> {parsed, args}
Expand Down

0 comments on commit d75cad6

Please sign in to comment.