diff --git a/src/idioms/dtor-finally.md b/src/idioms/dtor-finally.md index f0f82b26..e1b7f8db 100644 --- a/src/idioms/dtor-finally.md +++ b/src/idioms/dtor-finally.md @@ -9,6 +9,10 @@ be used to run code that must be run before exit. ## Example ```rust,ignore +fn baz() -> Result<(), ()> { + // some code +} + fn bar() -> Result<(), ()> { // These don't need to be defined inside the function. struct Foo;