From 5705fbc3b291bb05a062552d1543925950adc2e7 Mon Sep 17 00:00:00 2001 From: fuku Date: Sat, 4 Dec 2021 05:49:52 +0900 Subject: [PATCH] codegen: Fix typos (#1510) Fixes typos in the SDK's code generation variable names. --- .../amazon/smithy/aws/go/codegen/AwsClientUserAgent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsClientUserAgent.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsClientUserAgent.java index 39d08d1a8c8..5876f4c908a 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsClientUserAgent.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/AwsClientUserAgent.java @@ -41,7 +41,7 @@ public void writeAdditionalFiles( GoDelegator goDelegator ) { ServiceTrait serviceTrait = settings.getService(model).expectTrait(ServiceTrait.class); - String servceId = serviceTrait.getSdkId().replace("-", "").replace(" ", "").toLowerCase(); + String serviceId = serviceTrait.getSdkId().replace("-", "").replace(" ", "").toLowerCase(); goDelegator.useShapeWriter(settings.getService(model), writer -> { writer.openBlock("func $L(stack $P) error {", "}", MIDDLEWARE_RESOLVER, SymbolUtils.createPointableSymbolBuilder("Stack", @@ -51,7 +51,7 @@ public void writeAdditionalFiles( .build(), SymbolUtils.createValueSymbolBuilder("APIMetadata", AwsGoDependency.AWS_MIDDLEWARE).build(), - servceId, + serviceId, SymbolUtils.createValueSymbolBuilder("goModuleVersion").build()); }); writer.write("");