mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Update doc comments for StmtList.
This commit is contained in:
@@ -1828,13 +1828,15 @@ class _:
|
||||
@annotate(StmtList)
|
||||
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:
|
||||
```rust
|
||||
{
|
||||
let x = 1;
|
||||
let y = 2;
|
||||
x + y
|
||||
}
|
||||
// ^^^^^^^^^
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user