From b8617bb7527d39874b507a4c25bdaa8b6c4f4c3f Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sun, 31 Jul 2022 15:57:20 -0400 Subject: Correct conventional Zig reference vs value passing re #89 --- exercises/047_methods.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'exercises/047_methods.zig') diff --git a/exercises/047_methods.zig b/exercises/047_methods.zig index 048cfa0..a3ed220 100644 --- a/exercises/047_methods.zig +++ b/exercises/047_methods.zig @@ -10,7 +10,7 @@ // pub fn hello() void { // std.debug.print("Foo says hello!\n", .{}); // } -// } +// }; // // 2. A function that is a member of a struct is a "method" and is // called with the "dot syntax" like so: @@ -23,10 +23,10 @@ // const Bar = struct{ // number: u32, // -// pub fn printMe(self: *Bar) void { +// pub fn printMe(self: Bar) void { // std.debug.print("{}\n", .{self.number}); // } -// } +// }; // // (Actually, you can name the first parameter anything, but // please follow convention and use "self".) -- cgit v1.2.3-ZIG