From e62e42306a1012776b6b9824116dad601be8f557 Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Mon, 13 Mar 2023 13:46:43 +1300 Subject: Fix type signature for Right --- src/parcom/right.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) -- cgit v1.2.1