Skip to content

Commit da65071

Browse files
callthingsoffgopherbot
authored andcommitted
cmd/compile/internal/types2: fix typo in comment for StoreTypesInSyntax
Change-Id: Ia73b15b6df5e6f88741f2b54258d7cbad0239ddd Reviewed-on: https://go-review.googlesource.com/c/go/+/591396 Reviewed-by: Robert Findley <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent c83b1a7 commit da65071

File tree

1 file changed

+1
-1
lines changed
  • src/cmd/compile/internal/types2

1 file changed

+1
-1
lines changed

src/cmd/compile/internal/types2/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func (info *Info) recordTypes() bool {
321321
}
322322

323323
// TypeOf returns the type of expression e, or nil if not found.
324-
// Precondition 1: the Types map is populated or StoreTypesInSynax is set.
324+
// Precondition 1: the Types map is populated or StoreTypesInSyntax is set.
325325
// Precondition 2: Uses and Defs maps are populated.
326326
func (info *Info) TypeOf(e syntax.Expr) Type {
327327
if info.Types != nil {

0 commit comments

Comments
 (0)