Skip to content

Commit 12ba19f

Browse files
authored
Merge pull request astaxie#857 from liuml07/patch-1
error() -> Error()
2 parents cdc2330 + 75a2688 commit 12ba19f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/02.6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Looking back to the example of Box, you will find that Color implements interfac
226226
fmt.Println("The biggest one is", boxes.BiggestsColor().String())
227227
fmt.Println("The biggest one is", boxes.BiggestsColor())
228228
```
229-
Attention: If the type implemented the interface `error`, fmt will call `error()`, so you don't have to implement Stringer at this point.
229+
Attention: If the type implemented the interface `error`, fmt will call `Error()`, so you don't have to implement Stringer at this point.
230230

231231
### Type of variable in an interface
232232

0 commit comments

Comments
 (0)