aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/types2/predicates.go
diff options
context:
space:
mode:
authorJes Cok <xigua67damn@gmail.com>2023-06-23 07:47:48 +0000
committerGopher Robot <gobot@golang.org>2023-07-18 19:55:29 +0000
commit5d481abc87643146a3a3ee9f005ca01c7715772a (patch)
tree5ef76e1e6f1bff286751198ea8ebf6b40ebb4bf0 /src/cmd/compile/internal/types2/predicates.go
parent88a545d84438803714fa91f2c93057a3246bd58c (diff)
downloadgo-5d481abc87643146a3a3ee9f005ca01c7715772a.tar.gz
go-5d481abc87643146a3a3ee9f005ca01c7715772a.zip
all: fix typos
Change-Id: I510b0a4bf3472d937393800dd57472c30beef329 GitHub-Last-Rev: 8d289b73a37bd86080936423d981d21e152aaa33 GitHub-Pull-Request: golang/go#60960 Reviewed-on: https://go-review.googlesource.com/c/go/+/505398 Auto-Submit: Robert Findley <rfindley@google.com> Reviewed-by: Robert Findley <rfindley@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/cmd/compile/internal/types2/predicates.go')
-rw-r--r--src/cmd/compile/internal/types2/predicates.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/types2/predicates.go b/src/cmd/compile/internal/types2/predicates.go
index 13a3bf8af5..075bd97d0f 100644
--- a/src/cmd/compile/internal/types2/predicates.go
+++ b/src/cmd/compile/internal/types2/predicates.go
@@ -449,7 +449,7 @@ func (c *comparer) identical(x, y Type, p *ifacePair) bool {
return false
}
}
- return indenticalOrigin(x, y)
+ return identicalOrigin(x, y)
}
case *TypeParam:
@@ -466,7 +466,7 @@ func (c *comparer) identical(x, y Type, p *ifacePair) bool {
}
// identicalOrigin reports whether x and y originated in the same declaration.
-func indenticalOrigin(x, y *Named) bool {
+func identicalOrigin(x, y *Named) bool {
// TODO(gri) is this correct?
return x.Origin().obj == y.Origin().obj
}