Skip to content

Commit dc0c7d7

Browse files
committed
Fix commment typos
1 parent 1fd31d0 commit dc0c7d7

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

rust/ql/lib/utils/test/PathResolutionInlineExpectationsTest.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private module ResolveTest implements TestSig {
1414
i.getLocation().hasLocationInfo(filepath, _, _, line, _)
1515
}
1616

17-
private predicate commmentAt(string text, string filepath, int line) {
17+
private predicate commentAt(string text, string filepath, int line) {
1818
exists(Comment c |
1919
c.getLocation().hasLocationInfo(filepath, line, _, _, _) and
2020
c.getCommentText().trim() = text and
@@ -28,9 +28,9 @@ private module ResolveTest implements TestSig {
2828
if i instanceof SourceFile
2929
then value = i.getFile().getBaseName()
3030
else (
31-
commmentAt(value, filepath, line)
31+
commentAt(value, filepath, line)
3232
or
33-
not commmentAt(_, filepath, line) and
33+
not commentAt(_, filepath, line) and
3434
value = i.getName()
3535
)
3636
)

rust/ql/test/TestUtils.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Builtin extends AstNode {
2121
Builtin() { this.getFile().getAbsolutePath().matches("%/builtins/%.rs") }
2222
}
2323

24-
predicate commmentAt(string text, string filepath, int line) {
24+
predicate commentAt(string text, string filepath, int line) {
2525
exists(Comment c |
2626
c.getLocation().hasLocationInfo(filepath, line, _, _, _) and
2727
c.getCommentText().trim() = text and

rust/ql/test/library-tests/const_access/const_access.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ module ConstAccessTest implements TestSig {
2020
c = ca.getConst() and
2121
constAt(c, filepath, line)
2222
|
23-
commmentAt(value, filepath, line)
23+
commentAt(value, filepath, line)
2424
or
25-
not commmentAt(_, filepath, line) and
25+
not commentAt(_, filepath, line) and
2626
value = c.getName().getText()
2727
)
2828
}

rust/ql/test/library-tests/static_access/static_access.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ module StaticAccessTest implements TestSig {
2020
s = sa.getStatic() and
2121
staticAt(s, filepath, line)
2222
|
23-
commmentAt(value, filepath, line)
23+
commentAt(value, filepath, line)
2424
or
25-
not commmentAt(_, filepath, line) and
25+
not commentAt(_, filepath, line) and
2626
value = s.getName().getText()
2727
)
2828
}

rust/ql/test/library-tests/variables/variables.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ module VariableAccessTest implements TestSig {
4040

4141
private predicate decl(Variable v, string value) {
4242
exists(string filepath, int line, boolean inMacro | declAt(v, filepath, line, inMacro) |
43-
commmentAt(value, filepath, line) and inMacro = false
43+
commentAt(value, filepath, line) and inMacro = false
4444
or
45-
not (commmentAt(_, filepath, line) and inMacro = false) and
45+
not (commentAt(_, filepath, line) and inMacro = false) and
4646
value = v.getText()
4747
)
4848
}

shared/util/codeql/util/test/InlineExpectationsTest.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ private string mainResultSet() { result = ["#select", "problems"] }
597597
* foo(); // $ Alert[rust/unreachable-code]
598598
* ```
599599
*
600-
* In the example above, the `$ Alert[rust/unused-value]` commment is only taken
600+
* In the example above, the `$ Alert[rust/unused-value]` comment is only taken
601601
* into account in the test for the query with ID `rust/unused-value`, and vice
602602
* versa for the `$ Alert[rust/unreachable-code]` comment.
603603
*

0 commit comments

Comments
 (0)