From ce2aebe91085f987aab31bd2a49820fb605cf386 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 27 Oct 2024 21:14:27 -0400 Subject: Update docs to reflect deprecation of "&" stack references --- 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 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() ``` -- cgit v1.2.3