Skip to content

Commit 0fbe530

Browse files
committed
JS: Fix some broken comments
1 parent 6d01ba6 commit 0fbe530

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

javascript/ql/lib/semmle/javascript/endpoints/EndpointNaming.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ private API::Node getPreferredPredecessor(API::Node node, string name, int badne
121121
}
122122

123123
/**
124-
* Holds if values escpin
124+
* Holds if `(package, name)` is a potential name to associate with `sink`.
125+
*
126+
* `badness` is bound to the associated badness of the name.
125127
*/
126128
private predicate sinkHasNameCandidate(API::Node sink, string package, string name, int badness) {
127129
sink = API::moduleExport(package) and
@@ -137,7 +139,7 @@ private predicate sinkHasNameCandidate(API::Node sink, string package, string na
137139
}
138140

139141
/**
140-
* Holds if `(package, name)` is the primary name to associate with `node`.
142+
* Holds if `(package, name)` is the primary name to associate with `sink`.
141143
*
142144
* `badness` is bound to the associated badness of the name.
143145
*/

0 commit comments

Comments
 (0)