From 8075f6d38a648781bfa03ff3df6b8c89c5c36833 Mon Sep 17 00:00:00 2001 From: vwkd <33468089+vwkd@users.noreply.github.com> Date: Wed, 25 Oct 2023 15:32:14 +0400 Subject: [PATCH] whitespace --- examples/arithmetic/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/arithmetic/parser.rs b/examples/arithmetic/parser.rs index b7769176..16572751 100644 --- a/examples/arithmetic/parser.rs +++ b/examples/arithmetic/parser.rs @@ -50,7 +50,7 @@ fn term(i: &mut &str) -> PResult { .parse_next(i) } -// We transform an integer string into a i64, ignoring surrounding whitespaces +// We transform an integer string into a i64, ignoring surrounding whitespace // We look for a digit suite, and try to convert it. // If either str::from_utf8 or FromStr::from_str fail, // we fallback to the parens parser defined above @@ -63,7 +63,7 @@ fn factor(i: &mut &str) -> PResult { .parse_next(i) } -// We parse any expr surrounded by parens, ignoring all whitespaces around those +// We parse any expr surrounded by parens, ignoring all whitespace around those fn parens(i: &mut &str) -> PResult { delimited('(', expr, ')').parse_next(i) }