Spell fixes for error messages (#55587)

* Spell fixes for error messages

* spell fix
This commit is contained in:
Steven Martin
2025-06-17 14:17:50 +00:00
committed by GitHub
parent 8d6f525c80
commit a6465ee5f4
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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())
+3 -3
View File
@@ -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.