aboutsummaryrefslogtreecommitdiff
path: root/exercises/047_methods.zig
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2022-07-31 15:57:20 -0400
committerDave Gauer <dave@ratfactor.com>2022-07-31 15:58:24 -0400
commitb8617bb7527d39874b507a4c25bdaa8b6c4f4c3f (patch)
tree13bcaa129e879d2d97e71f48cc061642a3cfef4a /exercises/047_methods.zig
parent0e64778f3c27a4b42cc94f12c8c7029daed1bd8a (diff)
downloadziglings-b8617bb7527d39874b507a4c25bdaa8b6c4f4c3f.tar.gz
ziglings-b8617bb7527d39874b507a4c25bdaa8b6c4f4c3f.tar.bz2
ziglings-b8617bb7527d39874b507a4c25bdaa8b6c4f4c3f.tar.xz
ziglings-b8617bb7527d39874b507a4c25bdaa8b6c4f4c3f.zip
Correct conventional Zig reference vs value passing re #89
Diffstat (limited to 'exercises/047_methods.zig')
-rw-r--r--exercises/047_methods.zig6
1 files changed, 3 insertions, 3 deletions
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".)