aboutsummaryrefslogtreecommitdiff
path: root/content/methods/interfaces.go
diff options
context:
space:
mode:
Diffstat (limited to 'content/methods/interfaces.go')
-rw-r--r--content/methods/interfaces.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/content/methods/interfaces.go b/content/methods/interfaces.go
index a6eda32..d059f9f 100644
--- a/content/methods/interfaces.go
+++ b/content/methods/interfaces.go
@@ -16,11 +16,11 @@ func main() {
f := MyFloat(-math.Sqrt2)
v := Vertex{3, 4}
- a = f // a MyFloat implements Abser
- a = &v // a *Vertex implements Abser
+ a = f // a MyFloat mengimplementasikan Abser
+ a = &v // a *Vertex mengimplementasikan Abser
- // In the following line, v is a Vertex (not *Vertex)
- // and does NOT implement Abser.
+ // Pada baris berikut, v adalah sebuah Vertex (bukan *Vertex)
+ // dan TIDAK mengimplementasikan Abser.
a = v
fmt.Println(a.Abs())