From 75a268855cfaf325e35a7bb33c8413cb8684ca9b Mon Sep 17 00:00:00 2001 From: Mingliang Liu Date: Sat, 10 Jun 2017 01:05:36 -0700 Subject: [PATCH] error() -> Error() --- 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 f1313bf8..9f4ea3ec 100644 --- a/en/02.6.md +++ b/en/02.6.md @@ -226,7 +226,7 @@ Looking back to the example of Box, you will find that Color implements interfac fmt.Println("The biggest one is", boxes.BiggestsColor().String()) fmt.Println("The biggest one is", boxes.BiggestsColor()) ``` -Attention: If the type implemented the interface `error`, fmt will call `error()`, so you don't have to implement Stringer at this point. +Attention: If the type implemented the interface `error`, fmt will call `Error()`, so you don't have to implement Stringer at this point. ### Type of variable in an interface