Skip to content

Commit 1fedf42

Browse files
authored
Fix type of byte_offset (#133)
1 parent 0ccc43e commit 1fedf42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/nimble_parsec/compiler.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ defmodule NimbleParsec.Compiler do
2828
{:ok, [term], rest, context, line, byte_offset}
2929
| {:error, reason, rest, context, line, byte_offset}
3030
when line: {pos_integer, byte_offset},
31-
byte_offset: pos_integer,
31+
byte_offset: non_neg_integer,
3232
rest: binary,
3333
reason: String.t(),
3434
context: map

0 commit comments

Comments
 (0)