Skip to content

Commit

Permalink
Fix error in type instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
patriksvensson committed Dec 24, 2024
1 parent 61998bf commit 3d0409f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/language/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub type Person {
pub field name: string;
pub static fn new(name: string) -> Person {
return Person(name: name)
return new Person { name: name };
}
}
```
Expand Down

0 comments on commit 3d0409f

Please sign in to comment.