Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion web/examples/hello-world/main.almd
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Loading