mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JS: fix links in qhelp
This commit is contained in:
@@ -38,7 +38,7 @@ Determine what the loop is supposed to do:
|
||||
In this example, a function is intended to remove "<code>..</code>" parts from a path:
|
||||
</p>
|
||||
|
||||
<sample src="examples/MisleadingIndentationAfterControlStmt.js" />
|
||||
<sample src="examples/MissingIndexAdjustmentAfterConcurrentModification.js" />
|
||||
|
||||
<p>
|
||||
However, whenever the input contain two "<code>..</code>" parts right after one another, only the first will be removed.
|
||||
@@ -51,13 +51,13 @@ index 0 and will therefore be skipped.
|
||||
One way to avoid this is to decrement the loop counter after removing an element from the array:
|
||||
</p>
|
||||
|
||||
<sample src="examples/MisleadingIndentationAfterControlStmtGood.js" />
|
||||
<sample src="examples/MissingIndexAdjustmentAfterConcurrentModificationGood.js" />
|
||||
|
||||
<p>
|
||||
Alternatively, use the <code>filter</code> method:
|
||||
</p>
|
||||
|
||||
<sample src="examples/MisleadingIndentationAfterControlStmtGoodFilter.js" />
|
||||
<sample src="examples/MissingIndexAdjustmentAfterConcurrentModificationGoodFilter.js" />
|
||||
|
||||
</example>
|
||||
<references>
|
||||
|
||||
Reference in New Issue
Block a user