Skip to content

Commit 9f0fba1

Browse files
committed
Rust: Fix grammar and add documentation comments
1 parent db1b698 commit 9f0fba1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

rust/ql/lib/codeql/rust/controlflow/internal/Scope.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ private import codeql.rust.elements.internal.generated.ParentChild
77
* A control-flow graph (CFG) scope.
88
*/
99
abstract private class CfgScopeImpl extends AstNode {
10+
/** Holds if `first` is executed first when entering `scope`. */
1011
abstract predicate scopeFirst(AstNode first);
1112

13+
/** Holds if `scope` is exited when `last` finishes with completion `c`. */
1214
abstract predicate scopeLast(AstNode last, Completion c);
1315
}
1416

rust/ql/lib/codeql/rust/elements/AsyncBlockExpr.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
/**
2+
* This module provides the public class `AsyncBlockExpr`.
3+
*/
4+
15
private import codeql.rust.elements.BlockExpr
26

37
/**
4-
* A async block expression. For example:
8+
* An async block expression. For example:
59
* ```rust
610
* async {
711
* let x = 42;

0 commit comments

Comments
 (0)