Skip to content

Commit e471e06

Browse files
committed
Fix link to Kernel.<=/2 in Enum.sort_by/3 @doc
When I first wrote the docs, I didn't know I had to include the `Kernel.` to make the automatic linking work. I double checked after reading the documentation guide for Elixir 1.2 and noticed that the `<=/2` wasn't linking.
1 parent 076c8dc commit e471e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/enum.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,7 @@ defmodule Enum do
19091909
19101910
This function maps each element of the enumerable using the `mapper`
19111911
function. The enumerable is then sorted by the mapped elements
1912-
using the `sorter` function, which defaults to `<=/2`
1912+
using the `sorter` function, which defaults to `Kernel.<=/2`
19131913
19141914
`sort_by/3` differs from `sort/2` in that it only calculates the
19151915
comparison value for each element in the enumerable once instead of

0 commit comments

Comments
 (0)