1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-18 10:46:05 +02:00

Update 047_methods.zig

This commit is contained in:
Dave Gauer 2021-08-30 17:55:10 -04:00 committed by GitHub
parent 9fe3bb7665
commit 63f25f7a73
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: