Skip to content

Commit

Permalink
go/types: update comment to refer to package go/constant
Browse files Browse the repository at this point in the history
For #11949.

Change-Id: I4329604a24efc7f40cf5bf52fb3c9e30916b3cc2
Reviewed-on: https://go-review.googlesource.com/12931
Reviewed-by: Alan Donovan <adonovan@google.com>
  • Loading branch information
griesemer committed Jul 30, 2015
1 parent 80e6d63 commit 87fd98d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/go/types/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// language object (Object) it denotes.
// Use Info.{Defs,Uses,Implicits} for the results of name resolution.
//
// Constant folding computes the exact constant value (exact.Value) for
// every expression (ast.Expr) that is a compile-time constant.
// Constant folding computes the exact constant value (constant.Value)
// for every expression (ast.Expr) that is a compile-time constant.
// Use Info.Types[expr].Value for the results of constant folding.
//
// Type inference computes the type (Type) of every expression (ast.Expr)
Expand Down Expand Up @@ -218,7 +218,7 @@ func (info *Info) ObjectOf(id *ast.Ident) Object {
type TypeAndValue struct {
mode operandMode
Type Type
Value exact.Value
Value exact.Value // == constant.Value
}

// TODO(gri) Consider eliminating the IsVoid predicate. Instead, report
Expand Down

0 comments on commit 87fd98d

Please sign in to comment.