Skip to content

Commit 62a9d66

Browse files
authored
docs(iotevents-alpha): fix typos (#32912)
### 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*
1 parent 35275c3 commit 62a9d66

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/@aws-cdk/aws-iotevents-alpha/lib/state.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ interface TransitionEvent {
5151
readonly actions?: IAction[];
5252

5353
/**
54-
* The next state to transit to. When the resuld of condition expression is `true`, the state is transited.
54+
* The next state to transit to. When the result of condition expression is `true`, the state is transited.
5555
*/
5656
readonly nextState: State;
5757
}
@@ -127,7 +127,7 @@ export class State {
127127
}
128128

129129
/**
130-
* Collect states in dependency gragh that constructed by state transitions,
130+
* Collect states in dependency graph that constructed by state transitions,
131131
* and return the JSONs of the states.
132132
* This function is called recursively and collect the states.
133133
*

packages/@aws-cdk/aws-iotevents-alpha/test/detector-model.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ test('can set an action to multiple detector models', () => {
237237
}),
238238
});
239239

240-
// THEN creates two detector model resouces and two iam policy resources
240+
// THEN creates two detector model resources and two iam policy resources
241241
Template.fromStack(stack).resourceCountIs('AWS::IoTEvents::DetectorModel', 2);
242242
Template.fromStack(stack).resourceCountIs('AWS::IAM::Policy', 2);
243243

@@ -469,7 +469,7 @@ test('cannot create without event', () => {
469469
}).toThrow('Detector Model must have at least one Input with a condition');
470470
});
471471

472-
test('cannot create transitions that transit to duprecated target state', () => {
472+
test('cannot create transitions that transit to deprecated target state', () => {
473473
const firstState = new iotevents.State({
474474
stateName: 'firstState',
475475
onEnter: [{

0 commit comments

Comments
 (0)