Rust: Update doc comments for StmtList.

This commit is contained in:
Geoffrey White
2025-09-24 15:17:07 +01:00
parent 463f79bed2
commit ed2a14a3ec

View File

@@ -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
} }
// ^^^^^^^^^ // ^^^^^^^^^
``` ```