Skip to content

Commit 42564a5

Browse files
committed
Fixed inaccurate comments.
1 parent 291cd02 commit 42564a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/blocks/mrc_jump_to_step.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ const JUMP_TO_STEP_BLOCK = {
6060
});
6161
},
6262
/**
63-
* mrcOnMove is called when an EventBlock is moved.
64-
*/
63+
* mrcOnMove is called when a JumpToStepBlock is moved.
64+
*/
6565
mrcOnMove: function (this: JumpToStepBlock, _reason: string[]): void {
6666
this.checkBlockPlacement();
6767
},
@@ -73,14 +73,14 @@ const JUMP_TO_STEP_BLOCK = {
7373

7474
const rootBlock: Blockly.Block | null = this.getRootBlock();
7575
if (rootBlock.type === MRC_STEPS) {
76-
// This block is within a class method definition.
76+
// This block is within a steps block.
7777
const stepsBlock = rootBlock as StepsBlock;
78-
// Add the method's parameter names to legalStepNames.
78+
// Add the step names to legalStepNames.
7979
legalStepNames.push(...stepsBlock.mrcGetStepNames());
8080
}
8181

8282
if (legalStepNames.includes(this.getFieldValue(FIELD_STEP_NAME))) {
83-
// If this blocks's parameter name is in legalParameterNames, it's good.
83+
// If this blocks's step name is in legalStepNames, it's good.
8484
this.setWarningText(null, WARNING_ID_NOT_IN_STEP);
8585
this.mrcHasWarning = false;
8686
} else {

0 commit comments

Comments
 (0)