fix style mismatch on 065_builtins2.zig

Rename `fetchTheMostBeautifulType` to `FetchTheMostBeautifulType` to
follow Zig's standard naming practice.
This commit is contained in:
Gabriel Sa
2026-06-20 19:09:14 -03:00
parent 83a89702b2
commit dce9c803bf
+2 -2
View File
@@ -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. ", .{