We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61998bf commit 3d0409fCopy full SHA for 3d0409f
docs/language/types.md
@@ -64,7 +64,7 @@ pub type Person {
64
pub field name: string;
65
66
pub static fn new(name: string) -> Person {
67
- return Person(name: name)
+ return new Person { name: name };
68
}
69
70
```
0 commit comments