File 0230-Fix-typespec.patch of Package erlang

From 67545173c8baa55379e6456e3053b67e66e6ae08 Mon Sep 17 00:00:00 2001
From: "Paulo F. Oliveira" <paulo.ferraz.oliveira@gmail.com>
Date: Sun, 11 Apr 2021 00:22:23 +0100
Subject: [PATCH] Fix typespec

---
 lib/stdlib/src/gen.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/stdlib/src/gen.erl b/lib/stdlib/src/gen.erl
index a127720f4d..68bbbb3365 100644
--- a/lib/stdlib/src/gen.erl
+++ b/lib/stdlib/src/gen.erl
@@ -46,7 +46,7 @@
                     | {'global', term()}
                     | {'via', Module :: module(), Name :: term()}.
 
--type start_ret()  :: {'ok', pid()} | 'ignore' | {'error', term()}.
+-type start_ret()  :: {'ok', pid()} | {'ok', {pid(), reference()}} | 'ignore' | {'error', term()}.
 
 -type debug_flag() :: 'trace' | 'log' | 'statistics' | 'debug'
                     | {'logfile', string()}.
@@ -72,7 +72,7 @@
 %%    Options = [{timeout, Timeout} | {debug, [Flag]} | {spawn_opt, OptionList}]
 %%      Flag = trace | log | {logfile, File} | statistics | debug
 %%          (debug == log && statistics)
-%% Returns: {ok, Pid} | ignore |{error, Reason} |
+%% Returns: {ok, Pid} | {ok, Pid, Reference} | ignore |{error, Reason} |
 %%          {error, {already_started, Pid}} |
 %%    The 'already_started' is returned only if Name is given 
 %%-----------------------------------------------------------------
-- 
2.26.2

openSUSE Build Service is sponsored by