diff --git a/lib/elixir/lib/system.ex b/lib/elixir/lib/system.ex index d98fecd3f56..6a26794a243 100644 --- a/lib/elixir/lib/system.ex +++ b/lib/elixir/lib/system.ex @@ -1378,6 +1378,17 @@ defmodule System do @doc """ Returns the Erlang/OTP release number. + + The version is a single number, the major version of OTP. + Erlang/OTP does not provide an API to fetch the exact + patch version, see the [*Versions* page](https://www.erlang.org/doc/system/versions.html) + in the Erlang documentation for more information. + + ## Examples + + iex> System.otp_release() + "#{:erlang.system_info(:otp_release)}" + """ @spec otp_release :: String.t() @doc since: "1.3.0"