Skip to content

Commit 6647b00

Browse files
committed
Fix the spec for OptionParser.parse_head!/2
Signed-off-by: Andrea Leopardi <[email protected]>
1 parent d149c4c commit 6647b00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/option_parser.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ defmodule OptionParser do
239239
--verbose : Missing argument of type integer
240240
--source : Expected type integer, got "lib"
241241
"""
242-
@spec parse_head!(argv, options) :: {parsed, argv, errors} | no_return
242+
@spec parse_head!(argv, options) :: {parsed, argv} | no_return
243243
def parse_head!(argv, opts \\ []) when is_list(argv) and is_list(opts) do
244244
case parse_head(argv, opts) do
245245
{parsed, args, []} -> {parsed, args}

0 commit comments

Comments
 (0)