Skip to content

Commit 6802037

Browse files
Update qhelp formatting
1 parent 00999ba commit 6802037

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ql/src/Variables/LoopVariableCapture/LoopVariableCapture.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ To capture the value of a loop variable at the time the closure is created, use
2222
</recommendation>
2323
<example>
2424
<p>
25-
In the following (BAD) example, a `tasks` list is created, but each task captures the loop variable <code>i</code>, and reads the same value when run.
25+
In the following (BAD) example, a <code>tasks</code> list is created, but each task captures the loop variable <code>i</code>, and reads the same value when run.
2626
</p>
2727
<sample src="examples/bad.py" />
2828
<p>
29-
In the following (GOOD) example, each closure has an `i` default parameter, shadowing the outer <code>i</code> variable, the default value of which is determined as the value of the loop variable <code>i</code> at the time the closure is created.
29+
In the following (GOOD) example, each closure has an <code>i</code> default parameter, shadowing the outer <code>i</code> variable, the default value of which is determined as the value of the loop variable <code>i</code> at the time the closure is created.
3030
</p>
3131
<sample src="examples/good.py" />
3232
<p>

0 commit comments

Comments
 (0)