]> Cypherpunks repositories - gostls13.git/commitdiff
effective_go.html: be more accepting in the guidelines for interface names
authorRob Pike <r@golang.org>
Tue, 7 May 2013 18:41:36 +0000 (11:41 -0700)
committerRob Pike <r@golang.org>
Tue, 7 May 2013 18:41:36 +0000 (11:41 -0700)
Fixes #5421.

R=golang-dev, bradfitz, adg
CC=golang-dev
https://golang.org/cl/9274043

doc/effective_go.html

index 227659ef4c7dcc166ba2e8b69b236672725aa58a..1b3168683a5b6542772fa07830fb9fde3eed5085 100644 (file)
@@ -403,8 +403,10 @@ if owner != user {
 
 <p>
 By convention, one-method interfaces are named by
-the method name plus the -er suffix: <code>Reader</code>,
-<code>Writer</code>, <code>Formatter</code> etc.
+the method name plus an -er suffix or similar modification
+to construct an agent noun: <code>Reader</code>,
+<code>Writer</code>, <code>Formatter</code>,
+<code>CloseNotifier</code> etc.
 </p>
 
 <p>