From 38587a3762c5b2a67980da1302f4d63b16445862 Mon Sep 17 00:00:00 2001 From: O6lvl4 Date: Mon, 5 Oct 2026 09:34:40 +0900 Subject: [PATCH] Say in the Hello World comment that an indented second line is not part of the body and several statements need braces Co-Authored-By: Claude Opus 5.5 (1M context) --- web/examples/hello-world/main.almd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/examples/hello-world/main.almd b/web/examples/hello-world/main.almd index c5ad671..a3da883 100644 --- a/web/examples/hello-world/main.almd +++ b/web/examples/hello-world/main.almd @@ -2,7 +2,9 @@ // // The smallest Almide program. Printing needs no `effect`: `println` // works in any fn. The body is just the expression after `=`: no -// braces needed for a single expression. +// braces needed for a single expression. Indenting a second line does +// not add it to the body; several statements need braces: +// `fn main() -> Unit = { ... }`, one statement per line inside. fn main() -> Unit = println("Hello, world!")