diff options
author | Dave Gauer <ratfactor@gmail.com> | 2021-08-30 17:55:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 17:55:10 -0400 |
commit | 63f25f7a73c7405087a1e6ac518c7caa58ac2826 (patch) | |
tree | b91e346bcf861226607297b151419e608a16b1db /exercises/047_methods.zig | |
parent | 9fe3bb766508805fce288920dbfecb98ca14e29f (diff) | |
download | ziglings-63f25f7a73c7405087a1e6ac518c7caa58ac2826.tar.gz ziglings-63f25f7a73c7405087a1e6ac518c7caa58ac2826.tar.bz2 ziglings-63f25f7a73c7405087a1e6ac518c7caa58ac2826.tar.xz ziglings-63f25f7a73c7405087a1e6ac518c7caa58ac2826.zip |
Update 047_methods.zig
Diffstat (limited to 'exercises/047_methods.zig')
-rw-r--r-- | exercises/047_methods.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/exercises/047_methods.zig b/exercises/047_methods.zig index dcc3e13..b967ab8 100644 --- a/exercises/047_methods.zig +++ b/exercises/047_methods.zig @@ -28,6 +28,9 @@ // } // } // +// (Actually, you can name the first parameter anything, but +// please follow convention and use "self".) +// // 4. Now when you call the method on an INSTANCE of that struct // with the "dot syntax", the instance will be automatically // passed as the "self" parameter: |