diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 23:37:05 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 23:37:05 -0400 |
| commit | 1a196aa8f724971e531487f9cdd541f7957cfd92 (patch) | |
| tree | 52a36701065ab0e3f7012765c909c3b2a3fd2e49 /README.md | |
| parent | 4a3db447ce820617a72bdd9fc6217c84c3799bea (diff) | |
Update syntax in docs
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5,14 +5,14 @@ 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_any(" ")]) - if add_exclamation: + if add_exclamation message ++= "!!!" return message -func main(name:Text, shout=no): +func main(name:Text, shout=no) to_say := greeting(name, add_exclamation=shout) say(to_say) ``` |
