[erlang-bugs] [PATCH] Fix misleading argument name in shell:prompt_func/1
Leo Liu
sdl.web@REDACTED
Sat Jun 20 09:31:39 CEST 2015
diff --git a/lib/stdlib/src/shell.erl b/lib/stdlib/src/shell.erl
index c6ba574f..87770d29 100644
--- a/lib/stdlib/src/shell.erl
+++ b/lib/stdlib/src/shell.erl
@@ -1485,8 +1485,8 @@ catch_exception(Bool) ->
PromptFunc :: 'default' | {module(),atom()},
PromptFunc2 :: 'default' | {module(),atom()}.
-prompt_func(String) ->
- set_env(stdlib, shell_prompt_func, String, ?DEF_PROMPT_FUNC).
+prompt_func(PromptFunc) ->
+ set_env(stdlib, shell_prompt_func, PromptFunc, ?DEF_PROMPT_FUNC).
-spec strings(Strings) -> Strings2 when
Strings :: boolean(),
More information about the erlang-bugs
mailing list