Skip to content

Commit f716b89

Browse files
AndreiTsNmarcoieni
andauthored
chore(destructors): add clarification to code (#416)
Co-authored-by: Marco Ieni <[email protected]>
1 parent d4849cd commit f716b89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/idioms/dtor-finally.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ be used to run code that must be run before exit.
99
## Example
1010

1111
```rust,ignore
12+
fn baz() -> Result<(), ()> {
13+
// some code
14+
}
15+
1216
fn bar() -> Result<(), ()> {
1317
// These don't need to be defined inside the function.
1418
struct Foo;

0 commit comments

Comments
 (0)