From 2bb2ff871fa1761478442bec5f6a32c9428360a1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 14:20:18 -0400 Subject: Change method calls to use `foo.baz()` instead of `foo:baz()` --- docs/structs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/structs.md') 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 -- cgit v1.2.3