Skip to content

Commit

Permalink
Syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingranade authored Apr 10, 2020
1 parent 9e02bc1 commit c173f35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lgtm/cpp-queries/c-style-math-functions.qhelp
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ definitional differences of these functions, we prefer to avoid use of the funct
<example>

<p>Most current c++ standard libraries will allow invoking math functions in the global namespace</p>
<code>
<sample language="cpp">
#include <cmath>

float my_pow( float base, float exp ) {
return pow( base, exp );
}
</code>
</sample>

<p>Prefer invoking the version in the std namespace.</p>
<code>
<sample language="cpp">
#include <cmath>

float my_pow( float base, float exp ) {
return std::pow( base, exp );
}
</code>
</sample>

</example>
<references>
Expand Down

0 comments on commit c173f35

Please sign in to comment.