From 5db3caab610a5cc3e70532f971e0cbc2854b3462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sun, 1 Jan 2023 18:13:32 +0100 Subject: [PATCH] Parser - Fixed comments --- src/parser.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index fe2c143..15b581d 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -260,8 +260,8 @@ impl Parser { /// Parse the following rule: /// ``` - /// term := factor "+" factor - /// term := factor "-" factor + /// term := factor ( "+" factor )* + /// term := factor ( "-" factor )* /// ``` fn parse_term(&mut self) -> ParserResult { let mut expr = self.parse_factor()?; @@ -278,8 +278,8 @@ impl Parser { /// Parse the following rule: /// ``` - /// factor := unary "*" unary - /// factor := unary "/" unary + /// factor := unary ( "*" unary )* + /// factor := unary ( "/" unary )* /// ``` fn parse_factor(&mut self) -> ParserResult { let mut expr = self.parse_unary()?;