JS: address doc review

This commit is contained in:
Asger F
2019-01-03 10:49:36 +00:00
parent bc59e65222
commit f24313a215
2 changed files with 2 additions and 2 deletions

View File

@@ -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>

View File

@@ -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