Skip to content

Commit 8595868

Browse files
committed
go/types: fix a couple of internal comments
Change-Id: If0e8fbb05c09ee7c64e1aa6b0aa2ade35a70df8a Reviewed-on: https://go-review.googlesource.com/135696 Reviewed-by: Alan Donovan <[email protected]>
1 parent 5eec237 commit 8595868

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/go/types/decl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func objPathString(path []Object) string {
6565
}
6666

6767
// objDecl type-checks the declaration of obj in its respective (file) context.
68-
// See check.typ for the details on def and path.
68+
// For the meaning of def, see Checker.definedType, in typexpr.go.
6969
func (check *Checker) objDecl(obj Object, def *Named) {
7070
if trace {
7171
check.trace(obj.Pos(), "-- checking %s %s (objPath = %s)", obj.color(), obj, objPathString(check.objPath))

src/go/types/typexpr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
// ident type-checks identifier e and initializes x with the value or type of e.
1818
// If an error occurred, x.mode is set to invalid.
19-
// For the meaning of def, see check.typExpr, below.
19+
// For the meaning of def, see Checker.definedType, below.
2020
//
2121
func (check *Checker) ident(x *operand, e *ast.Ident, def *Named) {
2222
x.mode = invalid

0 commit comments

Comments
 (0)