]> Cypherpunks repositories - gostls13.git/commitdiff
cpu: fix typos in test case
authorag9920 <alexgong7@outlook.com>
Tue, 14 Jun 2022 02:09:10 +0000 (02:09 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 14 Jun 2022 14:49:40 +0000 (14:49 +0000)
Change-Id: Id6a27d0b3f3fc4181a00569bacc578e72b04ce09
GitHub-Last-Rev: 85c063d1a2d62181d16044592a60acf970fe3c86
GitHub-Pull-Request: golang/go#53359
Reviewed-on: https://go-review.googlesource.com/c/go/+/411916
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Peter Zhang <binbin36520@gmail.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>

src/internal/cpu/cpu_test.go

index e72d2d639ce9f5933ebfe1480a566c94a91fb5a9..c95cd517266013192e93eeb5e3e493b35a9e6c61 100644 (file)
@@ -19,7 +19,7 @@ func MustHaveDebugOptionsSupport(t *testing.T) {
        }
 }
 
-func MustSupportFeatureDectection(t *testing.T) {
+func MustSupportFeatureDetection(t *testing.T) {
        // TODO: add platforms that do not have CPU feature detection support.
 }
 
@@ -41,7 +41,7 @@ func runDebugOptionsTest(t *testing.T, test string, options string) {
 }
 
 func TestDisableAllCapabilities(t *testing.T) {
-       MustSupportFeatureDectection(t)
+       MustSupportFeatureDetection(t)
        runDebugOptionsTest(t, "TestAllCapabilitiesDisabled", "cpu.all=off")
 }