Writing rules: minor tweak for the C++ intro
This commit is contained in:
parent
c39fab721d
commit
8715fef681
|
@ -114,10 +114,8 @@ void CheckOther::divisionByZeroError()
|
||||||
|
|
||||||
<programlisting>if ( %var% ) { free ( %var% ) ; }</programlisting>
|
<programlisting>if ( %var% ) { free ( %var% ) ; }</programlisting>
|
||||||
|
|
||||||
<para>The <literal>%var%</literal> pattern is used to match any variable
|
<para>The <literal>%var%</literal> pattern match any variable name. Here
|
||||||
name.</para>
|
is a C++ function:</para>
|
||||||
|
|
||||||
<para>Here is a C++ function:</para>
|
|
||||||
|
|
||||||
<programlisting>// Find redundant condition before deallocation
|
<programlisting>// Find redundant condition before deallocation
|
||||||
void CheckOther::dealloc()
|
void CheckOther::dealloc()
|
||||||
|
|
Loading…
Reference in New Issue