From 9cdcef6d717732d18e9447dff3000d7603f6eb02 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Fri, 26 Aug 2022 16:46:49 +0200 Subject: [PATCH] Add type --- src_v2/parser/parser_internals.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_v2/parser/parser_internals.nim b/src_v2/parser/parser_internals.nim index d127c9b..580c2b1 100644 --- a/src_v2/parser/parser_internals.nim +++ b/src_v2/parser/parser_internals.nim @@ -106,7 +106,7 @@ proc str*(expectedString: string): parserFnT {.inline.} = ## Creates parser function with `expectedString` ## When the parser has the string at the following index return `ParserResult.ok` return proc(parser: Parser): ParserResult = - var res = parser.ok() + var res: ParserResult = parser.ok() for c in expectedString.items: res = res.flatMap(ch(c)) return res