From a6465ee5f48dc514b4ecb7db40d24aa72528956f Mon Sep 17 00:00:00 2001 From: Steven Martin Date: Tue, 17 Jun 2025 10:17:50 -0400 Subject: [PATCH] Spell fixes for error messages (#55587) * Spell fixes for error messages * spell fix --- lib/auth/join/boundkeypair/boundkeypair.go | 6 +++--- lib/utils/aws/region/internal/codegen.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/auth/join/boundkeypair/boundkeypair.go b/lib/auth/join/boundkeypair/boundkeypair.go index 0e4407e4f8e..96c8f55882b 100644 --- a/lib/auth/join/boundkeypair/boundkeypair.go +++ b/lib/auth/join/boundkeypair/boundkeypair.go @@ -235,7 +235,7 @@ func (c *ClientState) GenerateKeypair(ctx context.Context, getSuite cryptosuites privateKeyBytes, err := keys.MarshalPrivateKey(key) if err != nil { - return nil, trace.Wrap(err, "marshallng private key") + return nil, trace.Wrap(err, "marshaling private key") } // prepend the new key to the top of the list for faster lookup @@ -285,7 +285,7 @@ func (c *ClientState) SetActiveKey(signer crypto.Signer) error { privateKeyBytes, err := keys.MarshalPrivateKey(key.Signer) if err != nil { - return trace.Wrap(err, "marshallng private key") + return trace.Wrap(err, "marshaling private key") } sshPubKey, err := ssh.NewPublicKey(key.Public()) @@ -452,7 +452,7 @@ func NewUnboundClientState(ctx context.Context, fs FS, getSuite cryptosuites.Get privateKeyBytes, err := keys.MarshalPrivateKey(key) if err != nil { - return nil, trace.Wrap(err, "marshallng private key") + return nil, trace.Wrap(err, "marshaling private key") } sshPubKey, err := ssh.NewPublicKey(key.Public()) diff --git a/lib/utils/aws/region/internal/codegen.go b/lib/utils/aws/region/internal/codegen.go index 6d3e9da4ec5..4aa2f893627 100644 --- a/lib/utils/aws/region/internal/codegen.go +++ b/lib/utils/aws/region/internal/codegen.go @@ -88,7 +88,7 @@ type TemplateData struct { Regions map[string]string } -// AWSPartitions contains the struct representation of the AWS SDK patitions +// AWSPartitions contains the struct representation of the AWS SDK partitions // JSON file. type AWSPartitions struct { Partitions []struct { @@ -101,7 +101,7 @@ type AWSPartitions struct { func main() { partitionsContents, err := loadSDKPartitionsFile() if err != nil { - log.Fatalf("failed to parse patitions: %s", trace.DebugReport(err)) + log.Fatalf("failed to parse partitions: %s", trace.DebugReport(err)) } data, err := convertToTemplateData(partitionsContents) @@ -173,7 +173,7 @@ const ( outputFilename = "regions.go" // awsPackageName is the AWS package used to find the paritions references. awsPackageName = "github.com/aws/aws-sdk-go-v2" - // awsPartitionsFilePath is the patitions JSON file path inside the package. + // awsPartitionsFilePath is the partitions JSON file path inside the package. awsPartitionsFilePath = "internal/endpoints/awsrulesfn/partitions.json" // globalRegionSuffix is a strings suffix that indicates a region is a // global region.