aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 14:20:18 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 14:20:18 -0400
commit2bb2ff871fa1761478442bec5f6a32c9428360a1 (patch)
tree9b73df7a0c50c02353ae7bca7c2cd54788ef0077 /README.md
parent59845e610f2c90474f34079d27b5f1e07071ded4 (diff)
Change method calls to use `foo.baz()` instead of `foo:baz()`
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 8654078c..a86d77c3 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_any(" ")])
+ message = " ".join([w.title() for w in message.split_any(" ")])
if add_exclamation:
message ++= "!!!"
return message