]> Cypherpunks repositories - gostls13.git/commitdiff
go/types: fix a couple of internal comments
authorRobert Griesemer <gri@golang.org>
Mon, 17 Sep 2018 18:32:04 +0000 (11:32 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 17 Sep 2018 19:17:16 +0000 (19:17 +0000)
Change-Id: If0e8fbb05c09ee7c64e1aa6b0aa2ade35a70df8a
Reviewed-on: https://go-review.googlesource.com/135696
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/decl.go
src/go/types/typexpr.go

index d37a460a4ee305af4a9847693fd4c5ca134601fb..e248aab4f54c797f714ecc5d70fdcbdcad01da35 100644 (file)
@@ -65,7 +65,7 @@ func objPathString(path []Object) string {
 }
 
 // objDecl type-checks the declaration of obj in its respective (file) context.
-// See check.typ for the details on def and path.
+// For the meaning of def, see Checker.definedType, in typexpr.go.
 func (check *Checker) objDecl(obj Object, def *Named) {
        if trace {
                check.trace(obj.Pos(), "-- checking %s %s (objPath = %s)", obj.color(), obj, objPathString(check.objPath))
index 83848099c2c2fe341f86a117665ea9ea42960ac3..dab02bc13c9aae6f6477ad352ab01153a5d61b82 100644 (file)
@@ -16,7 +16,7 @@ import (
 
 // ident type-checks identifier e and initializes x with the value or type of e.
 // If an error occurred, x.mode is set to invalid.
-// For the meaning of def, see check.typExpr, below.
+// For the meaning of def, see Checker.definedType, below.
 //
 func (check *Checker) ident(x *operand, e *ast.Ident, def *Named) {
        x.mode = invalid