Browse Source

Update 047_methods.zig

Dave Gauer 4 years ago
parent
commit
065d409d0e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      exercises/047_methods.zig

+ 3 - 0
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: