summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuhaitz <zuhaitz.zechhub@gmail.com>2026-01-15 09:43:03 +0000
committerGitHub <noreply@github.com>2026-01-15 09:43:03 +0000
commit9bc8254e601e0782525ff60f53d60f05e9daf284 (patch)
tree8d490b16680b84771854391c7663e6d8897a5e69
parenta8b29a5f4ed89286b6a4c25eba6ce6f60fecbc21 (diff)
parentbd94562d43cf182fc5df5421599ff015578a2891 (diff)
Merge pull request #54 from thekovic/ternary_readme_fix
README: Fix ternary operator example syntax
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 219c8db..bea5caa 100644
--- a/README.md
+++ b/README.md
@@ -189,7 +189,7 @@ if x > 10 {
}
// Ternary
-var y = if x > 10 ? 1 : 0;
+var y = x > 10 ? 1 : 0;
```
#### Pattern Matching