aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blog/go-interfaces-considered-harmful-2018-12-03.markdown4
1 files changed, 3 insertions, 1 deletions
diff --git a/blog/go-interfaces-considered-harmful-2018-12-03.markdown b/blog/go-interfaces-considered-harmful-2018-12-03.markdown
index bb7a1e6..dc80d36 100644
--- a/blog/go-interfaces-considered-harmful-2018-12-03.markdown
+++ b/blog/go-interfaces-considered-harmful-2018-12-03.markdown
@@ -10,7 +10,9 @@ A group of blind men heard that a strange animal had been brought to the town fu
```
package blindmen
-type Animal interface{}
+type Animal interface{
+ error
+}
func Town(strangeAnimal Animal) {
```