mirror of
https://github.com/golang/go
synced 2024-09-30 07:28:36 -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:
parent
3a18f0ecb5
commit
12c5ca90a0
@ -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.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user