From b5429ae521c44a111a8438ea257a61ec20bf3875 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 12 Jun 2015 16:16:32 -0700 Subject: [PATCH] go/types: fix comment (missed in last commit) Change-Id: I4ea2a6b89b44b11cbcf771d0aab3e30370f59d31 Reviewed-on: https://go-review.googlesource.com/10996 Reviewed-by: Robert Griesemer --- go/types/resolver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/types/resolver.go b/go/types/resolver.go index 6b16df3d..628da4a6 100644 --- a/go/types/resolver.go +++ b/go/types/resolver.go @@ -154,7 +154,7 @@ func (check *Checker) collectObjects() { check.recordDef(file.Name, nil) // Use the actual source file extent rather than *ast.File extent since the - // latter doesn't include comments which appear at the end of the file. + // latter doesn't include comments which appear at the start or end of the file. f := check.fset.File(file.Pos()) fileScope := NewScope(check.pkg.scope, token.Pos(f.Base()), token.Pos(f.Base()+f.Size()), check.filename(fileNo)) check.recordScope(file, fileScope)