Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a90e4a7

Browse files
authored
Merge pull request #1066 from xiemaisi/fix-qhelp-backticks
Fix qhelp backticks
2 parents 984fb3a + a94f25e commit a90e4a7

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

cpp/ql/src/Likely Bugs/Conversion/LossyFunctionResultCast.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
</overview>
1010
<recommendation>
11-
<p>Consider changing the surrounding expression to match the floating point type. If rounding is intended, explicitly round using a standard function such as `trunc`, `floor` or `round`.</p>
11+
<p>Consider changing the surrounding expression to match the floating point type. If rounding is intended, explicitly round using a standard function such as <code>trunc</code>, <code>floor</code> or <code>round</code>.</p>
1212

1313
</recommendation>
1414
<example><sample src="LossyFunctionResultCast.cpp" />

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<p>A function is called with arguments despite having an empty parameter list. This may indicate
99
that the incorrect function is being called, or that the author misunderstood the function.</p>
1010

11-
<p>In C, a function declared with an empty parameter list `()` is considered to have an unknown
11+
<p>In C, a function declared with an empty parameter list <code>()</code> is considered to have an unknown
1212
parameter list, and therefore can be called with any set of arguments. To declare a function
13-
which takes no arguments, you must use `(void)` as the parameter list in any forward declarations.
13+
which takes no arguments, you must use <code>(void)</code> as the parameter list in any forward declarations.
1414
In C++, either style of declaration indicates that the function accepts no arguments.</p>
1515

1616
</overview>

javascript/ql/src/Security/CWE-116/DoubleEscaping.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ or garbled output.
3535
<p>
3636
Use a (well-tested) sanitization library if at all possible. These libraries are much more
3737
likely to handle corner cases correctly than a custom implementation. For URI encoding,
38-
you can use the standard `encodeURIComponent` and `decodeURIComponent` functions.
38+
you can use the standard <code>encodeURIComponent</code> and <code>decodeURIComponent</code> functions.
3939
</p>
4040
<p>
4141
Otherwise, make sure to always escape the escape character first, and unescape it last.

0 commit comments

Comments
 (0)