Skip to content

Commit

Permalink
Fixup documentation formatting for lists:sort/2
Browse files Browse the repository at this point in the history
Correction to the `-spec` for `lists:sort/2` to fix formatting and match the
documentation style of the rest of the erlang libraries.

Signed-off-by: Winford <[email protected]>
  • Loading branch information
UncleGrumpy committed Jan 31, 2024
1 parent 0e0afab commit bd2f271
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions libs/estdlib/src/lists.erl
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,7 @@ sort(Fun, List) when is_function(Fun), is_list(List) ->
%% @end
%%-----------------------------------------------------------------------------
%% Attribution: https://github.com/erlang/otp/blob/5c8a9cbd125f3db5f5d13ff5ba2a12c076912425/lib/stdlib/src/lists.erl#L1801
-spec split(N, List1) -> {List2, List3} when
N :: non_neg_integer(),
List1 :: [T],
List2 :: [T],
List3 :: [T],
T :: term().
-spec split(N :: non_neg_integer(), List1 :: list()) -> {List2 :: list(), List3 :: list()}.

split(N, List) when is_integer(N), N >= 0, is_list(List) ->
case split(N, List, []) of
Expand Down

0 comments on commit bd2f271

Please sign in to comment.