diff options
Diffstat (limited to 'lib/stdlib/src/peer.erl')
-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()}). |