]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/types2: fix typo in comment for StoreTypesInSyntax
authorJes Cok <xigua67damn@gmail.com>
Sat, 8 Jun 2024 01:53:38 +0000 (09:53 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 10 Jun 2024 13:48:53 +0000 (13:48 +0000)
Change-Id: Ia73b15b6df5e6f88741f2b54258d7cbad0239ddd
Reviewed-on: https://go-review.googlesource.com/c/go/+/591396
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/compile/internal/types2/api.go

index b9ec874d4598cccb87a506200d1c8c0b938d1a6d..74c549076df0904515ad1c4f6c47e15c77a280be 100644 (file)
@@ -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 {