From c409d637208dbf8c0e7b274e9ab3f8bd4f57bfc0 Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Mon, 16 Jul 2018 11:22:29 -0500 Subject: [PATCH] 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. --- apps/indexer/lib/indexer/sequence.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/indexer/lib/indexer/sequence.ex b/apps/indexer/lib/indexer/sequence.ex index 8148562f8b..3f20a1102d 100644 --- a/apps/indexer/lib/indexer/sequence.ex +++ b/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 `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