Skip to content

Commit 94221f2

Browse files
committed
Shutdowns can be any term, closes #9878
1 parent 6eaac2d commit 94221f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/gen_server.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ defmodule GenServer do
640640
This callback is optional.
641641
"""
642642
@callback terminate(reason, state :: term) :: term
643-
when reason: :normal | :shutdown | {:shutdown, term}
643+
when reason: :normal | :shutdown | {:shutdown, term} | term
644644

645645
@doc """
646646
Invoked to change the state of the `GenServer` when a different version of a

0 commit comments

Comments
 (0)