Allow first to be 0

It can be `0` when in finite mode, so allow it to be set to `0` to
indicate that ahead of time.
pull/411/head
Luke Imhoff 6 years ago
parent ded84c9633
commit c409d63720
  1. 4
      apps/indexer/lib/indexer/sequence.ex

@ -20,9 +20,9 @@ defmodule Indexer.Sequence do
The first number in the sequence to start at once the `t:prefix/0` ranges and any `t:Range.t/0`s injected with The first number in the sequence to start at once the `t:prefix/0` ranges and any `t:Range.t/0`s injected with
`inject_range/2` are all consumed. `inject_range/2` are all consumed.
""" """
@type first :: pos_integer() @type first :: non_neg_integer()
@typep first_named_argument :: {:first, pos_integer()} @typep first_named_argument :: {:first, first}
@type mode :: :infinite | :finite @type mode :: :infinite | :finite

Loading…
Cancel
Save