From 074cf22ad462eafe963e4a749b2b74cab51211a1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 9 Oct 2024 13:26:28 -0400 Subject: Change function syntax from `func(args)->ret` to `func(args -> ret)` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 071244d3..63f0017b 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ language that cross-compiles to C. Tomo is designed to anticipate and influence the language design decisions of the future. ``` -func greeting(name:Text, add_exclamation:Bool)->Text: +func greeting(name:Text, add_exclamation:Bool -> Text): message := "hello $name" message = " ":join([w:title() for w in message:split($/{space}/)]) if add_exclamation: -- cgit v1.2.3