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