fix conversion of ask/2 string
This commit is contained in:
parent
7015ba2951
commit
4c20e1903d
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ ask(Prompt, boolean) ->
|
||||||
ask(Prompt, number) ->
|
ask(Prompt, number) ->
|
||||||
ask_convert(Prompt, fun get_integer/1, number, none);
|
ask_convert(Prompt, fun get_integer/1, number, none);
|
||||||
ask(Prompt, string) ->
|
ask(Prompt, string) ->
|
||||||
ask_convert(Prompt, fun get_integer/1, string, none).
|
ask_convert(Prompt, fun get_string/1, string, none).
|
||||||
|
|
||||||
%% @doc Asks the user to respond to the prompt. Trys to return the
|
%% @doc Asks the user to respond to the prompt. Trys to return the
|
||||||
%% value in the format specified by 'Type'.
|
%% value in the format specified by 'Type'.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue