aboutsummaryrefslogtreecommitdiff
path: root/docs/structs.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 /docs/structs.md
parent59845e610f2c90474f34079d27b5f1e07071ded4 (diff)
Change method calls to use `foo.baz()` instead of `foo:baz()`
Diffstat (limited to 'docs/structs.md')
-rw-r--r--docs/structs.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/structs.md b/docs/structs.md
index ce4f6ff5..f075f037 100644
--- a/docs/structs.md
+++ b/docs/structs.md
@@ -31,8 +31,8 @@ struct Foo(name:Text, age:Int):
f.age += 1
...
my_foo := @Foo("Alice", 28)
-my_foo:greet()
-my_foo:get_older()
+my_foo.greet()
+my_foo.get_older()
```
Method calls work when the first argument is the struct type or a pointer to