fixed comments and naming

pull/7/head
ondra05 2022-04-18 21:43:19 +02:00
parent 097a5571ae
commit 141164b46a
1 changed files with 2 additions and 2 deletions

View File

@ -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<Stmt, Error> {
@ -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 {