Skip to content

Commit 9d46d2f

Browse files
authored
chore: fix duplicate word typos in documentation comments (#37357)
### Reason for this change Fix repeated words (stuttering typos) in JSDoc comments and code comments across multiple packages. ### Description of changes - `the the` → `the` (6 occurrences) - `of of` → `of` - `be be` → `be` - `is is` → `is` - `to to` → `to` ### Description of how you validated changes Comment-only changes. No functional impact. ### 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)
1 parent 5a3f2ea commit 9d46d2f

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

packages/aws-cdk-lib/aws-appsync/lib/key.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class KeyCondition {
2727
}
2828

2929
/**
30-
* Condition k > arg, true if the key attribute k is greater than the the Query argument
30+
* Condition k > arg, true if the key attribute k is greater than the Query argument
3131
*/
3232
public static gt(keyName: string, arg: string): KeyCondition {
3333
return new KeyCondition(new BinaryCondition(keyName, '>', arg));

packages/aws-cdk-lib/aws-dynamodb/lib/table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export interface CsvOptions {
116116
* List of the headers used to specify a common header for all source CSV files being imported.
117117
*
118118
* **NOTE**: If this field is specified then the first line of each CSV file is treated as data instead of the header.
119-
* If this field is not specified the the first line of each CSV file is treated as the header.
119+
* If this field is not specified the first line of each CSV file is treated as the header.
120120
*
121121
* @default - the first line of the CSV file is treated as the header
122122
*/

packages/aws-cdk-lib/aws-ec2/lib/vpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2491,7 +2491,7 @@ export class PublicSubnet extends Subnet implements IPublicSubnet {
24912491
/**
24922492
* Creates a new managed NAT gateway attached to this public subnet.
24932493
* Also adds the EIP for the managed NAT.
2494-
* @returns A ref to the the NAT Gateway ID
2494+
* @returns A ref to the NAT Gateway ID
24952495
*/
24962496
@MethodMetadata()
24972497
public addNatGateway(eipAllocationId?: string) {

packages/aws-cdk-lib/aws-ecr-assets/lib/tarball-asset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface TarballImageAssetProps {
2020
/**
2121
* Absolute path to the tarball.
2222
*
23-
* It is recommended to to use the script running directory (e.g. `__dirname`
23+
* It is recommended to use the script running directory (e.g. `__dirname`
2424
* in Node.js projects or dirname of `__file__` in Python) if your tarball
2525
* is located as a resource inside your project.
2626
*/

packages/aws-cdk-lib/aws-elasticloadbalancing/lib/load-balancer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export enum LoadBalancingProtocol {
244244
/**
245245
* A load balancer with a single listener
246246
*
247-
* Routes to a fleet of of instances in a VPC.
247+
* Routes to a fleet of instances in a VPC.
248248
*/
249249
@propertyInjectable
250250
export class LoadBalancer extends Resource implements ILoadBalancer, IConnectable {

packages/aws-cdk-lib/aws-events-targets/lib/log-group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export abstract class LogGroupTargetInput {
5454
}
5555

5656
/**
57-
* Pass a JSON object to the the log group event target
57+
* Pass a JSON object to the log group event target
5858
*
5959
* May contain strings returned by `EventField.from()` to substitute in parts of the
6060
* matched event.

packages/aws-cdk-lib/aws-s3/lib/notifications-resource/notifications-resource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class BucketNotifications extends Construct {
8585
resource.node.addDependency(...targetProps.dependencies);
8686
}
8787

88-
// based on the target type, add the the correct configurations array
88+
// based on the target type, add the correct configurations array
8989
switch (targetProps.type) {
9090
case BucketNotificationDestinationType.LAMBDA:
9191
this.lambdaNotifications.push({ ...commonConfig, LambdaFunctionArn: targetProps.arn });

packages/aws-cdk-lib/core/lib/duration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export class Duration {
232232
/**
233233
* Returns a string representation of this `Duration`
234234
*
235-
* This is is never the right function to use when you want to use the `Duration`
235+
* This is never the right function to use when you want to use the `Duration`
236236
* object in a template. Use `toSeconds()`, `toMinutes()`, `toDays()`, etc. instead.
237237
*/
238238
public toString(): string {

packages/aws-cdk-lib/core/lib/private/asset-staging.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export class AssetBundlingVolumeCopy extends AssetBundlingBase {
159159
}
160160

161161
/**
162-
* copy files from the the output volume to the host where this is executed
162+
* copy files from the output volume to the host where this is executed
163163
* @param outputPath - path to folder where files should be copied to - without trailing slash
164164
*/
165165
private copyOutputTo(outputPath: string) {

packages/aws-cdk-lib/core/lib/stage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export interface StageProps {
113113
* application.
114114
*
115115
* You can then instantiate your subclass multiple times to model multiple
116-
* copies of your application which should be be deployed to different
116+
* copies of your application which should be deployed to different
117117
* environments.
118118
*/
119119
export class Stage extends Construct {

0 commit comments

Comments
 (0)