mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
JS: address doc review
This commit is contained in:
@@ -19,7 +19,7 @@ Determine what the loop is supposed to do:
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
If the intention is to remove <em>every occurence</em> of a certain value, decrement the loop counter after removing an element, to counterbalance
|
||||
If the intention is to remove <em>every occurrence</em> of a certain value, decrement the loop counter after removing an element, to counterbalance
|
||||
the shift.
|
||||
</li>
|
||||
<li>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @name Loop iteration skipped due to shifting.
|
||||
* @name Loop iteration skipped due to shifting
|
||||
* @description Removing elements from an array while iterating over it can cause the loop to skip over some elements,
|
||||
* unless the loop index is decremented accordingly.
|
||||
* @kind problem
|
||||
|
||||
Reference in New Issue
Block a user