From ffea19d407a9fc600b399a90d498cbcbda8d19c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sat, 19 Oct 2019 10:48:27 +0200 Subject: Add since annotation --- lib/elixir/lib/enum.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/elixir/lib/enum.ex b/lib/elixir/lib/enum.ex index df6c24076..7056e5f79 100644 --- a/lib/elixir/lib/enum.ex +++ b/lib/elixir/lib/enum.ex @@ -2436,6 +2436,7 @@ defmodule Enum do [3, 2, 1] """ + @doc since: "1.10.0" @spec sort_reverse(t) :: list def sort_reverse(enumerable) do sort(enumerable, &(&1 >= &2)) @@ -2492,6 +2493,7 @@ defmodule Enum do [~D[2020-03-02], ~D[2019-06-06], ~D[2019-01-01]] """ + @doc since: "1.10.0" @spec sort_reverse(t, (element, element -> boolean)) :: list def sort_reverse(enumerable, fun) do sort(enumerable, to_sort_reverse_fun(fun)) @@ -2550,6 +2552,7 @@ defmodule Enum do %{name: "Lovelace", birthday: ~D[1815-12-10]} ] """ + @doc since: "1.10.0" @spec sort_reverse_by( t, (element -> mapped_element), -- cgit v1.2.1