Update example in readme

This commit is contained in:
Bruce Hill 2025-04-02 01:48:29 -04:00
parent 34b78b4bf2
commit f908205df8

View File

@ -7,7 +7,7 @@ the language design decisions of the future.
```
func greeting(name:Text, add_exclamation:Bool -> Text):
message := "hello $name"
message = " ":join([w:title() for w in message:split($/{space}/)])
message = " ":join([w:title() for w in message:split_any(" ")])
if add_exclamation:
message ++= "!!!"
return message