Skip to content

Commit

Permalink
go/types: fix a couple of internal comments
Browse files Browse the repository at this point in the history
Change-Id: If0e8fbb05c09ee7c64e1aa6b0aa2ade35a70df8a
Reviewed-on: https://go-review.googlesource.com/135696
Reviewed-by: Alan Donovan <adonovan@google.com>
  • Loading branch information
griesemer committed Sep 17, 2018
1 parent 5eec237 commit 8595868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/go/types/decl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/go/types/typexpr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8595868

Please sign in to comment.