Skip to content

Commit defad93

Browse files
Fix code example in GenServer docs (#13810)
1 parent 9b9ab99 commit defad93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/gen_server.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ defmodule GenServer do
415415
Let's see how we could use those functions for debugging the stack server
416416
we defined earlier.
417417
418-
iex> {:ok, pid} = Stack.start_link([])
418+
iex> {:ok, pid} = Stack.start_link("")
419419
iex> :sys.statistics(pid, true) # turn on collecting process statistics
420420
iex> :sys.trace(pid, true) # turn on event printing
421421
iex> Stack.push(pid, 1)

0 commit comments

Comments
 (0)