Skip to content

Commit e08072d

Browse files
Fix qhelp formatting
1 parent de7e611 commit e08072d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ In the following (BAD) example, a `tasks` list is created, but each task capture
2727
<sample src="examples/bad.py" />
2828
<p>
2929
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.
30+
</p>
3031
<sample src="examples/good.py" />
32+
<p>
3133
In the following (GOOD) example, <code>functools.partial</code> is used to partially evaluate the lambda expression with the value of <code>i</code>.
32-
<sample src="examples/good2.py" />
3334
</p>
35+
<sample src="examples/good2.py" />
36+
3437

3538

3639
</example>

0 commit comments

Comments
 (0)