From b4e0ce55db5a3b6085e8afc8d69aaa95c63ee684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sat, 7 Mar 2020 00:20:16 +0100 Subject: [PATCH] Shutdowns can be any term, closes #9878 --- lib/elixir/lib/gen_server.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elixir/lib/gen_server.ex b/lib/elixir/lib/gen_server.ex index 914f73a311..19f5c19f5e 100644 --- a/lib/elixir/lib/gen_server.ex +++ b/lib/elixir/lib/gen_server.ex @@ -640,7 +640,7 @@ defmodule GenServer do This callback is optional. """ @callback terminate(reason, state :: term) :: term - when reason: :normal | :shutdown | {:shutdown, term} + when reason: :normal | :shutdown | {:shutdown, term} | term @doc """ Invoked to change the state of the `GenServer` when a different version of a