Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/elixir/lib/system.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading