]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.1] effective_go.html: be more accepting in the guidelines for...
authorAndrew Gerrand <adg@golang.org>
Wed, 8 May 2013 22:57:44 +0000 (15:57 -0700)
committerAndrew Gerrand <adg@golang.org>
Wed, 8 May 2013 22:57:44 +0000 (15:57 -0700)
««« CL 9274043 / bbe324079abe
effective_go.html: be more accepting in the guidelines for interface names
Fixes #5421.

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

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/9137045

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>