From 04fdd58e4f5458c4de20e0e0864558cc0e665ee6 Mon Sep 17 00:00:00 2001 From: samsonium Date: Sun, 25 Oct 2026 04:51:37 +0300 Subject: [PATCH] fix: fix typo in examples --- exl/00_variables.fzs | 4 ++-- exl/01_conditions.fzs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exl/00_variables.fzs b/exl/00_variables.fzs index 015a819..d0535c5 100644 --- a/exl/00_variables.fzs +++ b/exl/00_variables.fzs @@ -5,7 +5,7 @@ str someString = "world, hello!"; // 2. Change variable value: someString = "hello, world!"; -// Variables helps you store values to use it later +// Variables help you store values to use it later int a = 2; int b = a + a * a; int c = a * b; @@ -13,7 +13,7 @@ int c = a * b; printline("Now we got 12:"); printline(c); -// Also, there is many different types to help your program +// Also, there are many different variable types to help your program // work with many things: int signedInteger; uint unsignedInteger; diff --git a/exl/01_conditions.fzs b/exl/01_conditions.fzs index 1a73b9d..060dac0 100644 --- a/exl/01_conditions.fzs +++ b/exl/01_conditions.fzs @@ -1,5 +1,5 @@ // When you need to check some value -// a conditional statements might help you +// a conditional statement might help you int valueToCheck = 2 + 2; if (valueToCheck == 4) @@ -7,7 +7,7 @@ if (valueToCheck == 4) printline("Yay! 2 + 2 = 4"); } -// Conditional statement uses condition in pairs +// Conditional statement uses condition in parenthesis // after `if` keyword and executes command(s) after // if condition turns out to be true @@ -21,7 +21,7 @@ if (age <= 20) else { age = 20; - printline("You looks too young!"); + printline("You look too young!"); } // NOTE: If you need to execute only one statement