diff options
| author | Dave Gauer <[email protected]> | 2021-08-30 17:55:10 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-30 17:55:10 -0400 |
| commit | 065d409d0e6fd6a2e08847dca37eb4f2a879df6c (patch) | |
| tree | b91e346bcf861226607297b151419e608a16b1db /exercises/047_methods.zig | |
| parent | e90042b95eb5dd9f7af62be1b54a899db8db4a8e (diff) | |
| download | ziglings-065d409d0e6fd6a2e08847dca37eb4f2a879df6c.tar.xz ziglings-065d409d0e6fd6a2e08847dca37eb4f2a879df6c.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: |
