From 05614bfcfa28f199d1e62df294a914daa3b76d8c Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 4 Aug 2015 11:52:01 -0700 Subject: [PATCH] spec: fix inconsistency of visibility rules for method names 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 Reviewed-by: Rob Pike Reviewed-by: Russ Cox --- doc/go_spec.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index b3d50888ad..2508945146 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -2097,7 +2097,8 @@ parentheses) where T is a type name. The type denoted by Tbase type; 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 bound to the base type and the method name -is visible only within selectors for that type. +is visible only within selectors for type T +or *T.

-- 2.50.0