summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/elixir/lib/system.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/elixir/lib/system.ex b/lib/elixir/lib/system.ex
index 9b923fa22..d137250bd 100644
--- a/lib/elixir/lib/system.ex
+++ b/lib/elixir/lib/system.ex
@@ -631,7 +631,8 @@ defmodule System do
"""
@doc since: "1.9.0"
- @spec get_env(String.t(), String.t() | nil) :: String.t() | nil
+ @spec get_env(String.t(), String.t()) :: String.t()
+ @spec get_env(String.t(), nil) :: String.t() | nil
def get_env(varname, default \\ nil)
when is_binary(varname) and
(is_binary(default) or is_nil(default)) do