Skip to content

Commit 1f061d5

Browse files
committed
docs: fix "allows to" grammar in README files
"allows to <verb>" is grammatically incorrect. The verb "allow" requires an object before the infinitive.
1 parent 012cf32 commit 1f061d5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/aws-cdk-lib/aws-kms/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ must be set to `true`. By default, this flag is `false` and grant calls on an im
100100

101101
If you can't use a KMS key imported by alias (e.g. because you need access to the key id), you can lookup the key with `Key.fromLookup()`.
102102

103-
In general, the preferred method would be to use `Alias.fromAliasName()` which returns an `IAlias` object which extends `IKey`. However, some services need to have access to the underlying key id. In this case, `Key.fromLookup()` allows to lookup the key id.
103+
In general, the preferred method would be to use `Alias.fromAliasName()` which returns an `IAlias` object which extends `IKey`. However, some services need to have access to the underlying key id. In this case, `Key.fromLookup()` allows you to look up the key id.
104104

105105
The result of the `Key.fromLookup()` operation will be written to a file
106106
called `cdk.context.json`. You must commit this file to source control so

packages/aws-cdk-lib/aws-lambda-destinations/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ payload file in the configured bucket is `aws/lambda/async/<function-name>/YYYY/
122122

123123
### Auto-extract response payload with lambda destination
124124

125-
The `responseOnly` option of `LambdaDestination` allows to auto-extract the response payload from the
125+
The `responseOnly` option of `LambdaDestination` allows you to auto-extract the response payload from the
126126
invocation record:
127127

128128
```ts
@@ -146,5 +146,5 @@ In the above example, `destinationFn` will be invoked with the payload returned
146146
When used with `onFailure`, the destination function is invoked with the error object returned
147147
by the source function.
148148

149-
Using the `responseOnly` option allows to easily chain asynchronous Lambda functions without
149+
Using the `responseOnly` option allows you to easily chain asynchronous Lambda functions without
150150
having to deal with data extraction in the runtime code.

packages/aws-cdk-lib/aws-lambda-nodejs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ new nodejs.NodejsFunction(this, 'my-handler', {
238238
charset: nodejs.Charset.UTF8, // do not escape non-ASCII characters, defaults to Charset.ASCII
239239
format: nodejs.OutputFormat.ESM, // ECMAScript module output format, defaults to OutputFormat.CJS (OutputFormat.ESM requires Node.js >= 14)
240240
mainFields: ['module', 'main'], // prefer ECMAScript versions of dependencies
241-
inject: ['./my-shim.js', './other-shim.js'], // allows to automatically replace a global variable with an import from another file
241+
inject: ['./my-shim.js', './other-shim.js'], // allows you to automatically replace a global variable with an import from another file
242242
esbuildArgs: { // Pass additional arguments to esbuild
243243
"--log-limit": "0",
244244
"--splitting": true,

0 commit comments

Comments
 (0)