diff options
| author | Jes Cok <xigua67damn@gmail.com> | 2025-11-21 16:08:00 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-11-21 09:48:22 -0800 |
| commit | dbd2ab999262e1c9304d0591d6883f83b09c8570 (patch) | |
| tree | 49c5bb5a438136d72981f63b8ac613b4dad2e19a /src/cmd/compile | |
| parent | b9d86baae34197004a175c5c02b901240056a250 (diff) | |
| download | go-dbd2ab999262e1c9304d0591d6883f83b09c8570.tar.xz | |
cmd/compile/internal: fix typos
Change-Id: I5974f5b460f827877f49f69aff01ce5042f511c0
GitHub-Last-Rev: 552d12c0e609a65481381191be6bbd9f353120f5
GitHub-Pull-Request: golang/go#76398
Reviewed-on: https://go-review.googlesource.com/c/go/+/722900
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Robert Griesemer <gri@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile')
| -rw-r--r-- | src/cmd/compile/internal/ir/expr.go | 2 | ||||
| -rw-r--r-- | src/cmd/compile/internal/ssagen/ssa.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/ir/expr.go b/src/cmd/compile/internal/ir/expr.go index dd1b94aa0d..6f198f0021 100644 --- a/src/cmd/compile/internal/ir/expr.go +++ b/src/cmd/compile/internal/ir/expr.go @@ -681,7 +681,7 @@ type TypeAssertExpr struct { // When set to true, if this assert would panic, then use a nil pointer panic // instead of an interface conversion panic. - // It must not be set for type asserts using the commaok form. + // It must not be set for type assertions using the commaok form. UseNilPanic bool } diff --git a/src/cmd/compile/internal/ssagen/ssa.go b/src/cmd/compile/internal/ssagen/ssa.go index 96be8ddd86..f0fff7aaa3 100644 --- a/src/cmd/compile/internal/ssagen/ssa.go +++ b/src/cmd/compile/internal/ssagen/ssa.go @@ -6160,8 +6160,8 @@ func (s *state) dottype(n *ir.TypeAssertExpr, commaok bool) (res, resok *ssa.Val base.Fatalf("unexpected *ir.TypeAssertExpr with UseNilPanic == true && commaok == true") } if n.Type().IsInterface() { - // Currently we do not expect the compiler to emit type asserts with UseNilPanic, that assert to an interface type. - // If needed, this can be relaxed in the future, but for now we can assert that. + // Currently we do not expect the compiler to emit type assertions with UseNilPanic, that asserts to an interface type. + // If needed, this can be relaxed in the future, but for now we can't assert that. base.Fatalf("unexpected *ir.TypeAssertExpr with UseNilPanic == true && Type().IsInterface() == true") } typs := s.f.Config.Types |
