Commit 3051ab2c authored by Robert Griesemer's avatar Robert Griesemer

go/types: remove non-existing mention of MethodSetCache from comment

Fixes #11800.

Change-Id: I5eb178331f4ae80821f188e19c0c6fadeb330278
Reviewed-on: https://go-review.googlesource.com/12433Reviewed-by: default avatarAlan Donovan <adonovan@google.com>
parent 1a0818a4
......@@ -62,11 +62,8 @@ func (s *MethodSet) Lookup(pkg *Package, name string) *Selection {
// Shared empty method set.
var emptyMethodSet MethodSet
// NewMethodSet returns the method set for the given type T. It
// always returns a non-nil method set, even if it is empty.
//
// A MethodSetCache handles repeat queries more efficiently.
//
// NewMethodSet returns the method set for the given type T.
// It always returns a non-nil method set, even if it is empty.
func NewMethodSet(T Type) *MethodSet {
// WARNING: The code in this function is extremely subtle - do not modify casually!
// This function and lookupFieldOrMethod should be kept in sync.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment