Skip to content

Commit d21a13b

Browse files
Add link to sorter functions in Enum module (#14712)
1 parent f0595a4 commit d21a13b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/elixir/lib/enum.ex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ defmodule Enum do
18451845
Returns the maximal element in the `enumerable` according
18461846
to Erlang's term ordering.
18471847
1848-
By default, the comparison is done with the `>=` sorter function.
1848+
By default, the comparison is done with the [`>=`](`>=/2`) sorter function.
18491849
If multiple elements are considered maximal, the first one that
18501850
was found is returned. If you want the last element considered
18511851
maximal to be returned, the sorter function should not return true
@@ -1912,7 +1912,7 @@ defmodule Enum do
19121912
Returns the maximal element in the `enumerable` as calculated
19131913
by the given `fun`.
19141914
1915-
By default, the comparison is done with the `>=` sorter function.
1915+
By default, the comparison is done with the [`>=`](`>=/2`) sorter function.
19161916
If multiple elements are considered maximal, the first one that
19171917
was found is returned. If you want the last element considered
19181918
maximal to be returned, the sorter function should not return true
@@ -2025,7 +2025,7 @@ defmodule Enum do
20252025
Returns the minimal element in the `enumerable` according
20262026
to Erlang's term ordering.
20272027
2028-
By default, the comparison is done with the `<=` sorter function.
2028+
By default, the comparison is done with the [`<=`](`<=/2`) sorter function.
20292029
If multiple elements are considered minimal, the first one that
20302030
was found is returned. If you want the last element considered
20312031
minimal to be returned, the sorter function should not return true
@@ -2092,7 +2092,7 @@ defmodule Enum do
20922092
Returns the minimal element in the `enumerable` as calculated
20932093
by the given `fun`.
20942094
2095-
By default, the comparison is done with the `<=` sorter function.
2095+
By default, the comparison is done with the [`<=`](`<=/2`) sorter function.
20962096
If multiple elements are considered minimal, the first one that
20972097
was found is returned. If you want the last element considered
20982098
minimal to be returned, the sorter function should not return true
@@ -2148,7 +2148,7 @@ defmodule Enum do
21482148
Returns a tuple with the minimal and the maximal elements in the
21492149
enumerable.
21502150
2151-
By default, the comparison is done with the `<` sorter function,
2151+
By default, the comparison is done with the [`<`](`</2`) sorter function,
21522152
as the function must not return true for equal elements.
21532153
21542154
## Examples
@@ -2263,8 +2263,8 @@ defmodule Enum do
22632263
Returns a tuple with the minimal and the maximal elements in the
22642264
enumerable as calculated by the given function.
22652265
2266-
By default, the comparison is done with the `<` sorter function,
2267-
as the function must not return true for equal elements.
2266+
By default, the comparison is done with the [`<`](`</2`) sorter function,
2267+
as the function must not return `true` for equal elements.
22682268
22692269
## Examples
22702270

0 commit comments

Comments
 (0)