From 1a196aa8f724971e531487f9cdd541f7957cfd92 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 23:37:05 -0400 Subject: Update syntax in docs --- docs/structs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/structs.md') diff --git a/docs/structs.md b/docs/structs.md index f075f037..1dfa49c9 100644 --- a/docs/structs.md +++ b/docs/structs.md @@ -21,13 +21,13 @@ Structs can define their own methods that can be called with a `:` or different values that are stored on the type itself. ```tomo -struct Foo(name:Text, age:Int): +struct Foo(name:Text, age:Int) oldest := Foo("Methuselah", 969) - func greet(f:Foo): + func greet(f:Foo) say("Hi my name is $f.name and I am $f.age years old!") - func get_older(f:@Foo): + func get_older(f:@Foo) f.age += 1 ... my_foo := @Foo("Alice", 28) -- cgit v1.2.3