Skip to content

Commit 915148f

Browse files
authored
C++: Fix placeholder syntax in training example
1 parent 95f8ba4 commit 915148f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/language/ql-training/query-examples/cpp/data-flow-cpp-2.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import cpp
22
import semmle.code.cpp.dataflow.DataFlow
33
import semmle.code.cpp.commons.Printf
44

5-
class SourceNode extends DataFlow::Node { ... }
5+
class SourceNode extends DataFlow::Node { /* ... */ }
66

77
from FormattingFunction f, Call c, SourceNode src, DataFlow::Node arg
88
where c.getTarget() = f and
99
arg.asExpr() = c.getArgument(f.getFormatParameterIndex()) and
1010
DataFlow::localFlow(src, arg) and
1111
not src.asExpr() instanceof StringLiteral
12-
select arg, "Non-constant format string."
12+
select arg, "Non-constant format string."

0 commit comments

Comments
 (0)