diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-10-28 13:53:15 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-10-28 13:53:15 -0400 |
| commit | 9c302fdc34403f46572d9524309617888ba816bb (patch) | |
| tree | 58ea7faf390536503de114cf2889ed85ba60df7b /docs/structs.md | |
| parent | c632a72486d347e7ef30c0b7890e2045ed42b903 (diff) | |
| parent | ce2aebe91085f987aab31bd2a49820fb605cf386 (diff) | |
Merge branch 'main' into internal-textsinternal-texts
Diffstat (limited to 'docs/structs.md')
| -rw-r--r-- | docs/structs.md | 4 |
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() ``` |
