aboutsummaryrefslogtreecommitdiff
path: root/docs/structs.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-27 21:14:27 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-27 21:14:27 -0400
commitce2aebe91085f987aab31bd2a49820fb605cf386 (patch)
tree9241858c01f68b4eccd2be88f8e12997c885cf46 /docs/structs.md
parentefb7be5bc4876c3113041848fb6d901a4f3ab4e9 (diff)
Update docs to reflect deprecation of "&" stack references
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()
```