aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 6b686410..3be00859 100644
--- a/README.md
+++ b/README.md
@@ -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)