From: Stephen Ma Date: Thu, 3 Sep 2009 03:09:25 +0000 (-0700) Subject: Update restriction on declarations of methods. X-Git-Tag: weekly.2009-11-06~655 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5db1d3867f49418736b9fce87f3cb05960560fdc;p=gostls13.git Update restriction on declarations of methods. APPROVED=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=34289 CL=34289 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index e080c95772..3f78f63cab 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1659,7 +1659,7 @@ The receiver type must be of the form T or *T where T is a type name. T is called the receiver base type or just base type. 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 bound to the base type and is visible only within selectors for that type (§Type declarations, §Selectors).