From 1fedf420ce69c9cb37b166463a36d6683c042515 Mon Sep 17 00:00:00 2001 From: Aaron Renner Date: Thu, 11 Jan 2024 23:55:10 -0700 Subject: [PATCH] Fix type of byte_offset (#133) --- lib/nimble_parsec/compiler.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nimble_parsec/compiler.ex b/lib/nimble_parsec/compiler.ex index 7da9c99..3a53895 100644 --- a/lib/nimble_parsec/compiler.ex +++ b/lib/nimble_parsec/compiler.ex @@ -28,7 +28,7 @@ defmodule NimbleParsec.Compiler do {:ok, [term], rest, context, line, byte_offset} | {:error, reason, rest, context, line, byte_offset} when line: {pos_integer, byte_offset}, - byte_offset: pos_integer, + byte_offset: non_neg_integer, rest: binary, reason: String.t(), context: map