diff --git a/go/ssa/methods.go b/go/ssa/methods.go index 080dca96..9cf38391 100644 --- a/go/ssa/methods.go +++ b/go/ssa/methods.go @@ -23,14 +23,14 @@ import ( // func (prog *Program) MethodValue(sel *types.Selection) *Function { if sel.Kind() != types.MethodVal { - panic(fmt.Sprintf("Method(%s) kind != MethodVal", sel)) + panic(fmt.Sprintf("MethodValue(%s) kind != MethodVal", sel)) } T := sel.Recv() if isInterface(T) { return nil // abstract method } if prog.mode&LogSource != 0 { - defer logStack("Method %s %v", T, sel)() + defer logStack("MethodValue %s %v", T, sel)() } prog.methodsMu.Lock() diff --git a/go/ssa/ssa.go b/go/ssa/ssa.go index 7f7998a5..78272c54 100644 --- a/go/ssa/ssa.go +++ b/go/ssa/ssa.go @@ -654,7 +654,7 @@ type ChangeInterface struct { // value of a concrete type. // // Use Program.MethodSets.MethodSet(X.Type()) to find the method-set -// of X, and Program.Method(m) to find the implementation of a method. +// of X, and Program.MethodValue(m) to find the implementation of a method. // // To construct the zero value of an interface type T, use: // NewConst(constant.MakeNil(), T, pos)