Skip to content

Commit

Permalink
Rust: Clarify the doc on the two models a little.
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffw0 committed Nov 28, 2024
1 parent 1d03384 commit 5b50a82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/ql/lib/codeql/rust/Concepts.qll
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ module RemoteSource {
}

/**
* A data-flow node that constructs a SQL statement.
* A data-flow node that constructs a SQL statement (for later execution).
*
* Often, it is worthy of an alert if a SQL statement is constructed such that
* executing it would be a security risk.
Expand Down Expand Up @@ -133,10 +133,10 @@ module SqlConstruction {
}

/**
* A data-flow node that executes SQL statements.
* A data-flow node that constructs and executes SQL statements.
*
* If the context of interest is such that merely constructing a SQL statement
* would be valuable to report, consider using `SqlConstruction`.
* would be valuable to report, consider also using `SqlConstruction`.
*
* Extend this class to refine existing API models. If you want to model new APIs,
* extend `SqlExecution::Range` instead.
Expand Down

0 comments on commit 5b50a82

Please sign in to comment.