From: Dominik Honnef Date: Sun, 9 Sep 2018 09:50:56 +0000 (+0200) Subject: go/types: fix swapped use of "uses" and "defines" in ObjectOf documentation X-Git-Tag: go1.12beta1~1123 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=12c5ca90a00768c6ad5f6d83f7c37964a30256fb;p=gostls13.git 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 --- diff --git a/src/go/types/api.go b/src/go/types/api.go index fcefddf488..4e14f40ade 100644 --- a/src/go/types/api.go +++ b/src/go/types/api.go @@ -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. //