Commit 12c5ca90 authored by Dominik Honnef's avatar Dominik Honnef Committed by Robert Griesemer

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

Change-Id: I855a9c88c379978099ea53c7d28b87cefd7f5d73
Reviewed-on: https://go-review.googlesource.com/134295Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
parent 3a18f0ec
......@@ -240,7 +240,7 @@ func (info *Info) TypeOf(e ast.Expr) Type {
// or nil if not found.
//
// 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.
//
......
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