Skip to content

Commit f3392f5

Browse files
authored
Update lib/elixir/lib/gen_server.ex
1 parent fa3e9e8 commit f3392f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/gen_server.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ defmodule GenServer do
276276
{:ok, _} = Registry.start_link(keys: :unique, name: :stacks)
277277
name = {:via, Registry, {:stacks, "stack 1"}}
278278
{:ok, _pid} = GenServer.start_link(Stack, "hello", name: name)
279-
Registry.lookup(:stacks, "stack 1")
280-
#=> [{#PID<0.150.0>, nil}]
279+
GenServer.whereis(name)
280+
#=> #PID<0.150.0>
281281
282282
## Receiving "regular" messages
283283

0 commit comments

Comments
 (0)