From 3d0409fb139133b2ee079f8b44dcd391088f8388 Mon Sep 17 00:00:00 2001 From: Patrik Svensson Date: Tue, 24 Dec 2024 12:13:20 +0100 Subject: [PATCH] Fix error in type instantiation --- docs/language/types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/language/types.md b/docs/language/types.md index 0883d46..f1332d3 100644 --- a/docs/language/types.md +++ b/docs/language/types.md @@ -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 }; } } ```