Skip to content

Commit

Permalink
Fix function spec to avoid dialyzer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jcomellas committed Jan 17, 2012
1 parent 9283bc0 commit 51fc89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getopt.erl
Expand Up @@ -336,7 +336,7 @@ add_implicit_integer_arg({Name, _Short, _Long, _ArgSpec, _Help}, OptAcc) ->

%% @doc Add an option with an argument and convert it to the data type corresponding
%% to the argument specification.
-spec add_arg(option_spec(), string(), [option()]) -> [option()].
-spec add_arg(option_spec(), arg_value(), [option()]) -> [option()].
add_arg({Name, _Short, _Long, _ArgSpec, _Help}, Arg, OptAcc) ->
[{Name, Arg} | lists:keydelete(Name, 1, OptAcc)].

Expand Down

0 comments on commit 51fc89b

Please sign in to comment.