diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-06-21 17:51:03 +0200 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-06-21 17:51:03 +0200 |
| commit | d52661fd397b1a929feb996b06fa36662bb5147f (patch) | |
| tree | 586d05343f5c53a994f1535f60a875b4a24b9a33 | |
| parent | 151450cc7ddc188ec69d066bdc5f4a85c4210fbe (diff) | |
| parent | fe1c9fb9bd1ba88b2b37ffa62dd454bfbe521d4a (diff) | |
Merge pull request 'fix style mismatch on 065_builtins2.zig' (#469) from garipew/exercises:fix_typo into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/469
| -rw-r--r-- | exercises/065_builtins2.zig | 4 | ||||
| -rw-r--r-- | patches/patches/065_builtins2.patch | 4 |
2 files changed, 4 insertions, 4 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. ", .{ 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. ", .{ |
