aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hall <hallmatthew314@gmail.com>2023-03-13 13:46:43 +1300
committerMatthew Hall <hallmatthew314@gmail.com>2023-03-13 13:46:43 +1300
commite62e42306a1012776b6b9824116dad601be8f557 (patch)
treef79f5831a4c8a742fb0964065926d9b1a8a9f0ca
parentdafeff8d652f07fca61ad6a2f601f0ceb550ab70 (diff)
Fix type signature for Right
-rw-r--r--src/parcom/right.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parcom/right.cr b/src/parcom/right.cr
index 202754d..a0489b1 100644
--- a/src/parcom/right.cr
+++ b/src/parcom/right.cr
@@ -7,7 +7,7 @@ module Parcom
# This parser behaves the same as `Plus`, but only returns the result
# of the second parser.
class Right(T, V, U) < Parser(T, U)
- @p : Map(T, {V, U}, V)
+ @p : Map(T, {V, U}, U)
# Accepts the two parsers to use, in order.
def initialize(p1 : Parser(T, V), p2 : Parser(T, U))