File 0640-fix-callback-function-arguments-error.patch of Package erlang

From d9852fbe7b3c74d4323271f46edecb3096bf0ace Mon Sep 17 00:00:00 2001
From: soulna <jiangranye@outlook.com>
Date: Tue, 24 Aug 2021 00:19:51 +0800
Subject: [PATCH] fix callback function arguments error

---
 system/doc/design_principles/events.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system/doc/design_principles/events.xml b/system/doc/design_principles/events.xml
index c2196c6758..3b13c6a0cd 100644
--- a/system/doc/design_principles/events.xml
+++ b/system/doc/design_principles/events.xml
@@ -224,7 +224,7 @@ ok</pre>
     <title>Handling Other Messages</title>
     <p>If the <c>gen_event</c> is to be able to receive other messages
       than events, the callback function
-      <c>handle_info(Info, StateName, StateData)</c>
+      <c>handle_info(Info, State)</c>
       must be implemented to handle them. Examples of other
       messages are exit messages, if the <c>gen_event</c> is linked to
       other processes (than the supervisor) and trapping exit signals.</p>
-- 
2.31.1

openSUSE Build Service is sponsored by