fix conversion of ask/2 string

This commit is contained in:
Tristan Sloughter 2015-05-31 12:04:54 -05:00
parent 7015ba2951
commit 4c20e1903d

View file

@ -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'.