]> Cypherpunks repositories - gostls13.git/commitdiff
spec: fix inconsistency of visibility rules for method names
authorRobert Griesemer <gri@golang.org>
Tue, 4 Aug 2015 18:52:01 +0000 (11:52 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 5 Aug 2015 17:03:36 +0000 (17:03 +0000)
Inconsistency identified by Anmol Sethi (anmol@aubble.com).

Fixes #10341.

Change-Id: I1a1f5b22aad29b56280f81026feaa37a61b3e0a9
Reviewed-on: https://go-review.googlesource.com/13132
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
doc/go_spec.html

index b3d50888ad27ecd6b5cac1405643514a341f8fef..25089451468bd794987dea4bd0f00ccaa1b34eb3 100644 (file)
@@ -2097,7 +2097,8 @@ parentheses) where <code>T</code> is a type name. The type denoted by <code>T</c
 the receiver <i>base type</i>; it must not be a pointer or interface type and
 it must be declared in the same package as the method.
 The method is said to be <i>bound</i> to the base type and the method name
-is visible only within selectors for that type.
+is visible only within <a href="#Selectors">selectors</a> for type <code>T</code>
+or <code>*T</code>.
 </p>
 
 <p>