aboutsummaryrefslogtreecommitdiff
path: root/docs/structs.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-28 13:53:15 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-28 13:53:15 -0400
commit9c302fdc34403f46572d9524309617888ba816bb (patch)
tree58ea7faf390536503de114cf2889ed85ba60df7b /docs/structs.md
parentc632a72486d347e7ef30c0b7890e2045ed42b903 (diff)
parentce2aebe91085f987aab31bd2a49820fb605cf386 (diff)
Merge branch 'main' into internal-textsinternal-texts
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 842f815b..ce4f6ff5 100644
--- a/docs/structs.md
+++ b/docs/structs.md
@@ -27,10 +27,10 @@ struct Foo(name:Text, age:Int):
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)
+my_foo := @Foo("Alice", 28)
my_foo:greet()
my_foo:get_older()
```