diff options
author | Sverker Eriksson <sverker@erlang.org> | 2022-05-10 12:22:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 12:22:47 +0200 |
commit | 3fdb554465fa777d875cfe0e838e89535dd19ad3 (patch) | |
tree | 60174c52a63dca706747ca2cce3496e61d911812 | |
parent | 9962287133b7107c34931f91d11aea6bea8fa4d1 (diff) | |
parent | 38998372a1b4911e184fe47940d64414901a50f3 (diff) | |
download | erlang-3fdb554465fa777d875cfe0e838e89535dd19ad3.tar.gz |
Merge PR-5976 from sverker/peer-doc-fix
Fix spec for peer:start_link/0
-rw-r--r-- | lib/stdlib/src/peer.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/peer.erl b/lib/stdlib/src/peer.erl index cc6ad22fdc..6938e5051a 100644 --- a/lib/stdlib/src/peer.erl +++ b/lib/stdlib/src/peer.erl @@ -174,7 +174,7 @@ random_name(Prefix) -> %% @doc Starts a distributed node with random name, on this host, %% and waits for that node to boot. Returns full node name, %% registers local process with the same name as peer node. --spec start_link() -> {ok, node()} | {error, Reason :: term()}. +-spec start_link() -> {ok, pid(), node()} | {error, Reason :: term()}. start_link() -> start_link(#{name => random_name()}). |