From 8ee024800087fa3430a4c2db2c1c3ce34f33330f Mon Sep 17 00:00:00 2001 From: Nineteendo Date: Tue, 17 Sep 2024 13:15:46 +0200 Subject: [PATCH] Document end offset --- src/jsonyx/_decoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jsonyx/_decoder.py b/src/jsonyx/_decoder.py index 4dcbb26..11c7fbc 100644 --- a/src/jsonyx/_decoder.py +++ b/src/jsonyx/_decoder.py @@ -159,7 +159,7 @@ class JSONSyntaxError(SyntaxError): :param filename: the path to the JSON file :param doc: a JSON string :param start: the start position - :param end: the end position + :param end: the end position or negative offset >>> import jsonyx as json >>> raise json.JSONSyntaxError("Expecting value", "", "[,]", 1)