diff options
Diffstat (limited to 'content/methods/interfaces-are-satisfied-implicitly.go')
| -rw-r--r-- | content/methods/interfaces-are-satisfied-implicitly.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/methods/interfaces-are-satisfied-implicitly.go b/content/methods/interfaces-are-satisfied-implicitly.go index 23f4539..9cc9bd3 100644 --- a/content/methods/interfaces-are-satisfied-implicitly.go +++ b/content/methods/interfaces-are-satisfied-implicitly.go @@ -12,8 +12,8 @@ type T struct { S string } -// This method means type T implements the interface I, -// but we don't need to explicitly declare that it does so. +// Method berikut berarti type T mengimplementasikan interface I, +// tapi kita tidak perlu secara eksplisit mendeklarasikannya. func (t T) M() { fmt.Println(t.S) } |
