]> Cypherpunks repositories - gostls13.git/commitdiff
go/types: fix swapped use of "uses" and "defines" in ObjectOf documentation
authorDominik Honnef <dominik@honnef.co>
Sun, 9 Sep 2018 09:50:56 +0000 (11:50 +0200)
committerRobert Griesemer <gri@golang.org>
Mon, 10 Sep 2018 17:24:58 +0000 (17:24 +0000)
Change-Id: I855a9c88c379978099ea53c7d28b87cefd7f5d73
Reviewed-on: https://go-review.googlesource.com/134295
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/api.go

index fcefddf48835ce574fb61f5793f933f56c830a4e..4e14f40adef7a95601cb9d59a5ba5d3503485c77 100644 (file)
@@ -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.
 //