1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:34:40 -07:00

Update restriction on declarations of methods.

APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=34289
CL=34289
This commit is contained in:
Stephen Ma 2009-09-02 20:09:25 -07:00
parent c9edbbd4d0
commit 5db1d3867f

View File

@ -1659,7 +1659,7 @@ The receiver type must be of the form <code>T</code> or <code>*T</code> where
<code>T</code> is a type name. <code>T</code> is called the
<i>receiver base type</i> or just <i>base type</i>.
The base type must not be a pointer or interface type and must be
declared in the same source file as the method.
declared in the same package as the method.
The method is said to be <i>bound</i> to the base type
and is visible only within selectors for that type
<a href="#Type_declarations">Type declarations</a>, §<a href="#Selectors">Selectors</a>).