Skip to content

Commit ed2a14a

Browse files
committed
Rust: Update doc comments for StmtList.
1 parent 463f79b commit ed2a14a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rust/schema/annotations.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1828,13 +1828,15 @@ class _:
18281828
@annotate(StmtList)
18291829
class _:
18301830
"""
1831-
A list of statements in a block.
1831+
A list of statements in a block, with an optional tail expression at the
1832+
end that determines the block's value.
18321833
18331834
For example:
18341835
```rust
18351836
{
18361837
let x = 1;
18371838
let y = 2;
1839+
x + y
18381840
}
18391841
// ^^^^^^^^^
18401842
```

0 commit comments

Comments
 (0)