From: Andrew Gerrand Date: Wed, 8 May 2013 22:57:44 +0000 (-0700) Subject: [release-branch.go1.1] effective_go.html: be more accepting in the guidelines for... X-Git-Tag: go1.1rc3~6 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0f1a18b773c57d8d8a2897ece9724042c7ad5581;p=gostls13.git [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 --- 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 {

By convention, one-method interfaces are named by -the method name plus the -er suffix: Reader, -Writer, Formatter etc. +the method name plus an -er suffix or similar modification +to construct an agent noun: Reader, +Writer, Formatter, +CloseNotifier etc.