From 5db1d3867f49418736b9fce87f3cb05960560fdc Mon Sep 17 00:00:00 2001 From: Stephen Ma Date: Wed, 2 Sep 2009 20:09:25 -0700 Subject: [PATCH] Update restriction on declarations of methods. APPROVED=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=34289 CL=34289 --- doc/go_spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index e080c957725..3f78f63cabb 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).