1
0
mirror of https://github.com/golang/go synced 2024-09-30 05:24:29 -06:00

go/types: fix swapped use of "uses" and "defines" in ObjectOf documentation

Change-Id: I855a9c88c379978099ea53c7d28b87cefd7f5d73
Reviewed-on: https://go-review.googlesource.com/134295
Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
Dominik Honnef 2018-09-09 11:50:56 +02:00 committed by Robert Griesemer
parent 3a18f0ecb5
commit 12c5ca90a0

View File

@ -240,7 +240,7 @@ func (info *Info) TypeOf(e ast.Expr) Type {
// or nil if not found. // or nil if not found.
// //
// If id is an embedded struct field, ObjectOf returns the field (*Var) // If id is an embedded struct field, ObjectOf returns the field (*Var)
// it uses, not the type (*TypeName) it defines. // it defines, not the type (*TypeName) it uses.
// //
// Precondition: the Uses and Defs maps are populated. // Precondition: the Uses and Defs maps are populated.
// //