From d00270adfe17e44e4eaeb4f4460eb2fa86929ba0 Mon Sep 17 00:00:00 2001 From: pockhiss Date: Sun, 12 Jul 2015 07:54:58 -0500 Subject: [PATCH] Update 02.6.md Fixed typo. Changed "have" to "behave". --- en/02.6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/02.6.md b/en/02.6.md index 40167fac..b87d63da 100644 --- a/en/02.6.md +++ b/en/02.6.md @@ -326,7 +326,7 @@ One thing you should remember is that `element.(type)` cannot be used outside of ### Embedded interfaces -The most beautiful thing is that Go has a lot of built-in logic syntax, such as anonymous fields in struct. Not suprisingly, we can use interfaces as anonymous fields as well, but we call them `Embedded interfaces`. Here, we follow the same rules as anonymous fields. More specifically, if an interface has another interface embedded within it, it will have as if it has all the methods that the embedded interface has. +The most beautiful thing is that Go has a lot of built-in logic syntax, such as anonymous fields in struct. Not suprisingly, we can use interfaces as anonymous fields as well, but we call them `Embedded interfaces`. Here, we follow the same rules as anonymous fields. More specifically, if an interface has another interface embedded within it, it will behave as if it has all the methods that the embedded interface has. We can see that the source file in `container/heap` has the following definition: