Skip to content

Commit d9d0d3c

Browse files
committed
ruby: add code block
1 parent 8aa195d commit d9d0d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/src/queries/performance/CouldBeHoisted.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Performance can usually be improved by performing a single database query outsid
1515
</p>
1616
</recommendation>
1717
<example>
18-
<p>The following (suboptimal) example code queries the User object in each iteration of the loop:</p>
18+
<p>The following (suboptimal) example code queries the <code>User</code> object in each iteration of the loop:</p>
1919
<sample src="examples/straight_loop.rb" />
2020
<p>To improve the performance, we instead query the <code>User</code> object once outside the loop, gathering all necessary information in a single query:</p>
2121
<sample src="examples/preload.rb" />

0 commit comments

Comments
 (0)