Skip to content

Commit 669fc92

Browse files
committed
C++: Fix qhelp formatting.
1 parent 8a04840 commit 669fc92

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cpp/ql/src/Likely Bugs/Likely Typos/IncorrectNotOperatorUsage.qhelp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@
1616
<p>Carefully inspect the flagged expressions. Consider the intent in the code logic, and decide whether it is necessary to change the not operator.</p>
1717
</recommendation>
1818

19+
<example>
1920
<p>Here is an example of this issue and how it can be fixed:</p>
20-
<example><sample src="IncorrectNotOperatorUsage.cpp" /></example>
21+
22+
<sample src="IncorrectNotOperatorUsage.cpp" />
23+
2124
<p>In other cases, particularly when the expressions have <code>bool</code> type, the fix may instead be of the form <code>a &amp;&amp; !b</code></p>
25+
</example>
2226

2327
<references>
2428
<li>

0 commit comments

Comments
 (0)