diff options
author | Rickard Green <rickard@erlang.org> | 2021-04-19 10:56:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-19 10:56:08 +0200 |
commit | 771502bc1dcffe7c6154258d1fd305d2284f84b5 (patch) | |
tree | 81df62171b5b8d7674d8c040cefe3c6bdad710fd /lib/stdlib | |
parent | b2d6bdb893927bd64b0199acc2e1be1a1ce1cdfe (diff) | |
parent | 67545173c8baa55379e6456e3053b67e66e6ae08 (diff) | |
download | erlang-771502bc1dcffe7c6154258d1fd305d2284f84b5.tar.gz |
Merge pull request #4726 from paulo-ferraz-oliveira/fix/gen_erl-start_ret
Fix typespec in gen.erl
OTP-17342 PR-4726 GH-4725
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/src/gen.erl | 4 |
1 files 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 %%----------------------------------------------------------------- |