Skip to content

Commit

Permalink
chore(docs): fix typos (#32864)
Browse files Browse the repository at this point in the history
### Issue # (if applicable)

None

### Reason for this change

Fixed typos in code comments.

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
andyu17 authored Jan 13, 2025
1 parent a734841 commit f832851
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-lambda/lib/function-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export abstract class FunctionBase extends Resource implements IFunction, ec2.IC
protected _invocationGrants: Record<string, iam.Grant> = {};

/**
* Mapping of fucntion URL invocation principals to grants. Used to de-dupe `grantInvokeUrl()` calls.
* Mapping of function URL invocation principals to grants. Used to de-dupe `grantInvokeUrl()` calls.
* @internal
*/
protected _functionUrlInvocationGrants: Record<string, iam.Grant> = {};
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-lambda/lib/lambda-insights.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export abstract class LambdaInsightsVersion {
return new InsightsArn();
}

// Use the verison to build the object. Not meant to be called by the user -- user should use e.g. VERSION_1_0_54_0
// Use the version to build the object. Not meant to be called by the user -- user should use e.g. VERSION_1_0_54_0
private static fromInsightsVersion(insightsVersion: string): LambdaInsightsVersion {
class InsightsVersion extends LambdaInsightsVersion {
public readonly layerVersionArn = Lazy.uncachedString({
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-lambda/lib/singleton-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class SingletonFunction extends FunctionBase {
this.runtime = this.lambdaFunction.runtime;
this.grantPrincipal = this.lambdaFunction.grantPrincipal;

this.canCreatePermissions = true; // Doesn't matter, addPermission is overriden anyway
this.canCreatePermissions = true; // Doesn't matter, addPermission is overridden anyway
}

/**
Expand Down

0 comments on commit f832851

Please sign in to comment.