summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuhaitz <zuhaitz.zechhub@gmail.com>2026-01-27 10:05:59 +0000
committerGitHub <noreply@github.com>2026-01-27 10:05:59 +0000
commit86ae08ff28ee47c57546c487b0bdaab27c4ab5ad (patch)
treedb5fdf78be7bf9a7401730fdfda601969d2ad516
parent938773d9cc062fd028f6560b1127a2ecd23f61c3 (diff)
Fix array initialization syntax in README
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4f4a5d7..6a6f598 100644
--- a/README.md
+++ b/README.md
@@ -206,7 +206,7 @@ let y: const int = 10; // Read-only (Type qualified)
Fixed-size arrays with value semantics.
```zc
def SIZE = 5;
-let ints: int[SIZE] = {1, 2, 3, 4, 5};
+let ints: int[SIZE] = [1, 2, 3, 4, 5];
let zeros: [int; SIZE]; // Zero-initialized
```