aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-03 21:09:11 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-03 21:09:11 -0400
commite15cb21cd5bfca686bd0d068280da3702aa9758e (patch)
treeec5f73127355f8f144a593553af333357aeb906b /README.md
parentc14ed3e3e71535e73352ead0ecaedaa46dc5aeee (diff)
Fix up CLI parsing
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)