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
6 changes: 4 additions & 2 deletions lib/elixir/lib/kernel.ex
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ defmodule Kernel do
comparison"](#module-structural-comparison) section
for more information.

Inlined by the compiler.
Allowed in guard tests. Inlined by the compiler.

## Examples

Expand All @@ -982,6 +982,7 @@ defmodule Kernel do
"b"

"""
@doc guard: true
@spec max(first, second) :: first | second when first: term, second: term
def max(first, second) do
:erlang.max(first, second)
Expand All @@ -998,7 +999,7 @@ defmodule Kernel do
comparison"](#module-structural-comparison) section
for more information.

Inlined by the compiler.
Allowed in guard tests. Inlined by the compiler.

## Examples

Expand All @@ -1008,6 +1009,7 @@ defmodule Kernel do
"bar"

"""
@doc guard: true
@spec min(first, second) :: first | second when first: term, second: term
def min(first, second) do
:erlang.min(first, second)
Expand Down
Loading