From dce9c803bfbe4c8fd2add562bbbfd8e16df3dde9 Mon Sep 17 00:00:00 2001 From: Gabriel Sa Date: Sat, 20 Jun 2026 19:09:14 -0300 Subject: fix style mismatch on 065_builtins2.zig Rename `fetchTheMostBeautifulType` to `FetchTheMostBeautifulType` to follow Zig's standard naming practice. --- exercises/065_builtins2.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/065_builtins2.zig b/exercises/065_builtins2.zig index 78cd23b..7bb3ac6 100644 --- a/exercises/065_builtins2.zig +++ b/exercises/065_builtins2.zig @@ -47,7 +47,7 @@ const Narcissus = struct { myself: *Narcissus = undefined, echo: void = undefined, // Alas, poor Echo! - fn fetchTheMostBeautifulType() type { + fn FetchTheMostBeautifulType() type { return @This(); } }; @@ -70,7 +70,7 @@ pub fn main() void { // // The fix for this is very subtle, but it makes a big // difference! - const Type2 = narcissus.fetchTheMostBeautifulType(); + const Type2 = narcissus.FetchTheMostBeautifulType(); // Now we print a pithy statement about Narcissus. print("A {s} loves all {s}es. ", .{ -- cgit v1.2.3 From 935d26828036da962f5c22738d86e8530a3819a2 Mon Sep 17 00:00:00 2001 From: Gabriel Sa Date: Sun, 21 Jun 2026 11:58:29 -0300 Subject: fix style mismatch on patches/065_builtins2.zig Rename `fetchTheMostBeautifulType` to `FetchTheMostBeautifulType` to follow Zig's standard naming practice. --- patches/patches/065_builtins2.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/patches/065_builtins2.patch b/patches/patches/065_builtins2.patch index c011646..2abbc6f 100644 --- a/patches/patches/065_builtins2.patch +++ b/patches/patches/065_builtins2.patch @@ -13,8 +13,8 @@ // // The fix for this is very subtle, but it makes a big // difference! -- const Type2 = narcissus.fetchTheMostBeautifulType(); -+ const Type2 = Narcissus.fetchTheMostBeautifulType(); +- const Type2 = narcissus.FetchTheMostBeautifulType(); ++ const Type2 = Narcissus.FetchTheMostBeautifulType(); // Now we print a pithy statement about Narcissus. print("A {s} loves all {s}es. ", .{ -- cgit v1.2.3