From 0f1a18b773c57d8d8a2897ece9724042c7ad5581 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Wed, 8 May 2013 15:57:44 -0700 Subject: [release-branch.go1.1] effective_go.html: be more accepting in the guidelines for interface names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ««« 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 | 6 ++++-- 1 file 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 {

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.

-- cgit v1.2.3-54-g00ecf