aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2013-05-08 15:57:44 -0700
committerAndrew Gerrand <adg@golang.org>2013-05-08 15:57:44 -0700
commit0f1a18b773c57d8d8a2897ece9724042c7ad5581 (patch)
treef347cae1b762771a0115476e369c14e8a50b1e72
parent1c5438aae896edcd1e9f9618f4776517f08053b3 (diff)
downloadgo-0f1a18b773c57d8d8a2897ece9724042c7ad5581.tar.gz
go-0f1a18b773c57d8d8a2897ece9724042c7ad5581.zip
[release-branch.go1.1] effective_go.html: be more accepting in the guidelines for interface names
««« 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
-rw-r--r--doc/effective_go.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/effective_go.html b/doc/effective_go.html
index 227659ef4c..1b3168683a 100644
--- a/doc/effective_go.html
+++ b/doc/effective_go.html
@@ -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>