Skip to content

Commit

Permalink
Fix typedoc of Arrays.Protocol.options
Browse files Browse the repository at this point in the history
  • Loading branch information
Qqwy committed Sep 6, 2021
1 parent 625d368 commit dec2184
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/arrays/protocol.ex
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,11 @@ defprotocol Arrays.Protocol do
def slice(array, start_index, amount)

@typedoc """
Option passed to `c:empty/1`.
A list of options passed to `c:empty/1`.
The option `:default` is recognized by all array implementations.
A particular array implementation might recognize other specialized options.
What options are recognized by a particular implementation varies.
"""
@type option :: {:default, any} | {atom, any}

@typedoc """
A list of options passed to `c:empty/1`
"""
@type options :: [option]
@type options :: Keyword.t()


@doc """
Expand Down

0 comments on commit dec2184

Please sign in to comment.