From 38d641ffcd7cf129d2669e46ce117c98dcda8cdc Mon Sep 17 00:00:00 2001 From: Dummi26 Date: Sat, 1 Apr 2023 20:39:18 +0200 Subject: [PATCH] updated readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cb61306..17c1e8e 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ Let's replace the if statement from before with a nice match statement! the syntax for a match statement is always `match { }`. -A match arm consists of a condition statement and an action statement. `input.eq("+")`, `input-eq("-")`, and `true` are condition statements. +A match arm consists of a condition statement and an action statement. `input.eq("+")`, `input.eq("-")`, and `true` are condition statements. The match statement will go through all condition statements until one matches (in this case: returns `true`), then run the action statement. If we move the `true` match arm to the top, the other two arms will never be executed, even though they might also match.