From 60088757c3553da7fc99ea65aec3c0c093bc5baf Mon Sep 17 00:00:00 2001 From: nub31 Date: Wed, 9 Jul 2025 18:19:59 +0200 Subject: [PATCH] ... --- example/src/main.nub | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/example/src/main.nub b/example/src/main.nub index 1037aa0..40026cd 100644 --- a/example/src/main.nub +++ b/example/src/main.nub @@ -1,21 +1,21 @@ -struct name +struct Name { first: cstring last: cstring } -struct human +struct Human { - name: name + name: Name age: i64 } -trait printable +trait Printable { func print() } -impl printable for human +impl Printable for Human { func print() { c::puts(this.name.first) @@ -24,9 +24,9 @@ impl printable for human func main(args: []cstring): i64 { - let human = alloc human + let human = alloc Human { - name = alloc name { + name = alloc Name { first = "john" last = "doe" }