From f2340dd493978723d14a6d3d4c8b28cb8f0c9642 Mon Sep 17 00:00:00 2001 From: Erin Date: Mon, 18 Apr 2022 21:43:19 +0200 Subject: [PATCH] fixed comments and naming --- ablescript/src/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ablescript/src/parser.rs b/ablescript/src/parser.rs index 5256a48..875cb6e 100644 --- a/ablescript/src/parser.rs +++ b/ablescript/src/parser.rs @@ -416,7 +416,7 @@ impl<'source> Parser<'source> { Ok(r) } - /// Parse If flow + /// Parse Unless flow /// /// Consists of condition and block, there is no else fn unless_flow(&mut self) -> Result { @@ -673,7 +673,7 @@ mod tests { } #[test] - fn if_flow() { + fn unless_flow() { let code = "unless (never + never) { /*Buy Able products!*/ print; }"; let expected = &[Spanned { item: Stmt::Unless {