Skip to content

Commit f24313a

Browse files
committed
JS: address doc review
1 parent bc59e65 commit f24313a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

javascript/ql/src/Statements/LoopIterationSkippedDueToShifting.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Determine what the loop is supposed to do:
1919

2020
<ul>
2121
<li>
22-
If the intention is to remove <em>every occurence</em> of a certain value, decrement the loop counter after removing an element, to counterbalance
22+
If the intention is to remove <em>every occurrence</em> of a certain value, decrement the loop counter after removing an element, to counterbalance
2323
the shift.
2424
</li>
2525
<li>

javascript/ql/src/Statements/LoopIterationSkippedDueToShifting.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @name Loop iteration skipped due to shifting.
2+
* @name Loop iteration skipped due to shifting
33
* @description Removing elements from an array while iterating over it can cause the loop to skip over some elements,
44
* unless the loop index is decremented accordingly.
55
* @kind problem

0 commit comments

Comments
 (0)