File 0530-change-shell-prompt_func-param-name-to-PromptFunc.patch of Package erlang
From 91af68b9dffdbe65e03f55ce408d71eef09ab871 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ferenc=20B=C3=B6r=C3=B6czki?=
<f3c0@users.noreply.github.com>
Date: Thu, 16 Jan 2020 21:53:45 +0100
Subject: [PATCH] change shell:prompt_func param name to PromptFunc
---
lib/stdlib/src/shell.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/stdlib/src/shell.erl b/lib/stdlib/src/shell.erl
index c73cf22943..9bb48cb157 100644
--- a/lib/stdlib/src/shell.erl
+++ b/lib/stdlib/src/shell.erl
@@ -1496,8 +1496,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(),
--
2.16.4