From da65071f36d6d64881df177a9a9d5f3fc2daade7 Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Sat, 8 Jun 2024 09:53:38 +0800 Subject: [PATCH] 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 Auto-Submit: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor --- src/cmd/compile/internal/types2/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/compile/internal/types2/api.go b/src/cmd/compile/internal/types2/api.go index b9ec874d45..74c549076d 100644 --- a/src/cmd/compile/internal/types2/api.go +++ b/src/cmd/compile/internal/types2/api.go @@ -321,7 +321,7 @@ func (info *Info) recordTypes() bool { } // TypeOf returns the type of expression e, or nil if not found. -// Precondition 1: the Types map is populated or StoreTypesInSynax is set. +// Precondition 1: the Types map is populated or StoreTypesInSyntax is set. // Precondition 2: Uses and Defs maps are populated. func (info *Info) TypeOf(e syntax.Expr) Type { if info.Types != nil { -- 2.48.1