aboutsummaryrefslogtreecommitdiff
path: root/spec/practical
diff options
context:
space:
mode:
authorMatthew Hall <hallmatthew314@gmail.com>2023-04-02 11:38:47 +1200
committerMatthew Hall <hallmatthew314@gmail.com>2023-04-02 11:38:47 +1200
commit4fd257bb084d173fa07aa057e6d294ee525721e8 (patch)
treedac30ab25ec823ec727e6db6d1ecbc411185bac4 /spec/practical
parent42e04f13d0968ff8d40d7e7ad3fd51c4e70eeed0 (diff)
Refactor parser_chain argument order
Diffstat (limited to 'spec/practical')
-rw-r--r--spec/practical/json_spec.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/practical/json_spec.cr b/spec/practical/json_spec.cr
index 9d47b93..a0ce2db 100644
--- a/spec/practical/json_spec.cr
+++ b/spec/practical/json_spec.cr
@@ -42,7 +42,7 @@ describe "example: JSON parsing", tags: "example" do
sign = Parser.token('-').map_const(-1).recover(1)
point = Parser.token('.').optional
- json_number = parser_chain "json_number", Char, JSONValue,
+ json_number = parser_chain Char, JSONValue, "json_number",
{s, sign},
{front, digits},
{p, point},