[PATCH] Fix misleading argument name in shell:prompt_func/1
Leo Liu <[email protected]> Sat, 20 Jun 2015 15:31:39 +0800
| Newsgroups | gmane.comp.lang.erlang.bugs |
|---|---|
| Message-ID | <[email protected]> |
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(),
_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs