diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,9 +6,9 @@ the language design decisions of the future. ``` func greeting(name:Text)->Text: - greeting := "hello {name}!" - words := greeting:split(" ") - return " ":join([w:capitalize() for w in words]) + greeting := "hello $name!" + words := greeting:split($/ /) + return " ":join([w:title() for w in words]) func main(name="World"): to_say := greeting(name) |
