From 3d9dcf408f91084bb4db62d15b0bb3304c12da76 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 31 Mar 2014 16:48:42 -0700 Subject: [PATCH] go.tools/go/types: comment fixes - no code changes TBR=adonovan TBR=adonovan R=adonovan CC=golang-codereviews https://golang.org/cl/80430045 --- go/types/typexpr.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/go/types/typexpr.go b/go/types/typexpr.go index 5fd8b0e1..3c48c71c 100644 --- a/go/types/typexpr.go +++ b/go/types/typexpr.go @@ -17,7 +17,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 and cycle, see check.typ, below. +// For the meaning of def and path, see check.typ, below. // func (check *checker) ident(x *operand, e *ast.Ident, def *Named, path []*TypeName) { x.mode = invalid @@ -71,7 +71,6 @@ func (check *checker) ident(x *operand, e *ast.Ident, def *Named, path []*TypeNa x.mode = typexpr // check for cycle // (it's ok to iterate forward because each named type appears at most once in path) - // TODO(gri) consider passing []*Named instead of []*TypeName for cycle for i, prev := range path { if prev == obj { check.errorf(obj.pos, "illegal cycle in declaration of %s", obj.name)