aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hall <hallmatthew314@gmail.com>2023-03-09 00:19:06 +1300
committerMatthew Hall <hallmatthew314@gmail.com>2023-03-09 00:19:06 +1300
commit03f802e7797ca75f0dc201d762ca4d8a64c15445 (patch)
tree6f7571c2b1459faef32d9cc7bbcaa8379fd538ae
parente199329cbb23352fbd18c2eb2586b564ad9b206c (diff)
Add type signature for recover method
-rw-r--r--src/parcom.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parcom.cr b/src/parcom.cr
index a2b8b92..c1eb676 100644
--- a/src/parcom.cr
+++ b/src/parcom.cr
@@ -75,7 +75,7 @@ module Parcom
Map.new(self, f)
end
- def recover(default : T)
+ def recover(default : V) : Recover(T, V)
Recover.new(self, default)
end
end