Skip to content

Commit 4fa7716

Browse files
authored
chore: fix spelling error of if (#31353)
I saw this while reading the [EC2 instance docs](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Instance.html#userdatacausesreplacement).
1 parent fa55194 commit 4fa7716

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/@aws-cdk/cloudformation-diff/lib/diff-template.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function calculateTemplateDiff(currentTemplate: { [key: string]: any }, newTempl
151151
/**
152152
* Replace all references to the given logicalID on the given template, in-place
153153
*
154-
* Returns true iff any references were replaced.
154+
* Returns true if any references were replaced.
155155
*/
156156
function propagateReplacedReferences(template: object, logicalId: string): boolean {
157157
let ret = false;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export interface InstanceProps {
177177
* UserData, which will cause CloudFormation to replace it if the UserData
178178
* changes.
179179
*
180-
* @default - true iff `initOptions` is specified, false otherwise.
180+
* @default - true if `initOptions` is specified, false otherwise.
181181
*/
182182
readonly userDataCausesReplacement?: boolean;
183183

packages/aws-cdk/lib/notices.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export class NoticeFilter {
255255
}
256256

257257
/**
258-
* Returns true iff we should show this notice.
258+
* Returns true if we should show this notice.
259259
*/
260260
apply(notice: Notice): boolean {
261261
if (this.acknowledgedIssueNumbers.has(notice.issueNumber)) {
@@ -267,7 +267,7 @@ export class NoticeFilter {
267267
}
268268

269269
/**
270-
* Returns true iff we should show the notice.
270+
* Returns true if we should show the notice.
271271
*/
272272
private applyVersion(notice: Notice, name: string, compareToVersion: string | undefined) {
273273
if (compareToVersion === undefined) { return false; }

0 commit comments

Comments
 (0)