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

Skip to content

Commit 8294aee

Browse files
committed
JS: fix doc comments
1 parent bb775e3 commit 8294aee

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

javascript/ql/src/semmle/javascript/StringOps.qll

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ module StringOps {
194194
/**
195195
* Gets the polarity of the check.
196196
*
197-
* If the polarity is `false` the check returns `true` if the string does not start
198-
* with the given substring.
197+
* If the polarity is `false` the check returns `true` if the string does not contain
198+
* the given substring.
199199
*/
200200
boolean getPolarity() { result = true }
201201
}
@@ -334,8 +334,7 @@ module StringOps {
334334
}
335335

336336
/**
337-
* An expression that appears to be part of an `endsWith`-check, that is,
338-
* roughly equivalent to `A.endsWith(B)` or `!A.endsWith(B)`.
337+
* An expression that is equivalent to `A.endsWith(B)` or `!A.endsWith(B)`.
339338
*/
340339
abstract class EndsWith extends DataFlow::Node {
341340
/**
@@ -351,7 +350,7 @@ module StringOps {
351350
/**
352351
* Gets the polarity if the check.
353352
*
354-
* If the polarity is `false` the check returns `true` if the string does not start
353+
* If the polarity is `false` the check returns `true` if the string does not end
355354
* with the given substring.
356355
*/
357356
boolean getPolarity() { result = true }

0 commit comments

Comments
 (0)