From c35dc8adca566826af0ce1bb4eb5bc3a42b60eba Mon Sep 17 00:00:00 2001 From: SpectralPixel Date: Mon, 27 May 2024 20:19:41 +0200 Subject: [PATCH] Convert Listing 9-12 to `` (had to fix a conflect here) --- src/ch09-02-recoverable-errors-with-result.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ch09-02-recoverable-errors-with-result.md b/src/ch09-02-recoverable-errors-with-result.md index a4656c9e9..25885546b 100644 --- a/src/ch09-02-recoverable-errors-with-result.md +++ b/src/ch09-02-recoverable-errors-with-result.md @@ -492,12 +492,13 @@ code will now compile. Filename: src/main.rs ++ ```rust,ignore {{#rustdoc_include ../listings/ch09-error-handling/listing-09-12/src/main.rs}} ``` -Listing 9-12: Changing `main` to return `Result<(), E>` -allows the use of the `?` operator on `Result` values. + The `Box` type is a *trait object*, which we’ll talk about in the [“Using Trait Objects that Allow for Values of Different