mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Rust: Update doc comments for StmtList.
This commit is contained in:
@@ -1828,13 +1828,15 @@ class _:
|
|||||||
@annotate(StmtList)
|
@annotate(StmtList)
|
||||||
class _:
|
class _:
|
||||||
"""
|
"""
|
||||||
A list of statements in a block.
|
A list of statements in a block, with an optional tail expression at the
|
||||||
|
end that determines the block's value.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
```rust
|
```rust
|
||||||
{
|
{
|
||||||
let x = 1;
|
let x = 1;
|
||||||
let y = 2;
|
let y = 2;
|
||||||
|
x + y
|
||||||
}
|
}
|
||||||
// ^^^^^^^^^
|
// ^^^^^^^^^
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user