From 08ece846f1bf037b9e7e2a412fd4c8c2f334c10b Mon Sep 17 00:00:00 2001 From: Daniel Maslowski Date: Mon, 27 Oct 2025 12:56:05 +0100 Subject: [PATCH] Spell out d_estruc_tor It took me a while to figure out what "dtor" meant. Let's save others some precious time. :-) --- src/idioms/dtor-finally.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idioms/dtor-finally.md b/src/idioms/dtor-finally.md index e1b7f8db..89f0e36c 100644 --- a/src/idioms/dtor-finally.md +++ b/src/idioms/dtor-finally.md @@ -24,7 +24,7 @@ fn bar() -> Result<(), ()> { } } - // The dtor of _exit will run however the function `bar` is exited. + // The destructor of _exit will run however the function `bar` is exited. let _exit = Foo; // Implicit return with `?` operator. baz()?;