Skip to content

Commit 32facd5

Browse files
authored
Merge pull request #1306 from alcuadrado/patch-1
Add missing `dyn` in code sample
2 parents 7f698b7 + 80e7efb commit 32facd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/error/multiple_error_types/reenter_question_mark.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Here, we rewrite the previous example using `?`. As a result, the
2626
use std::error;
2727
use std::fmt;
2828
29-
// Change the alias to `Box<error::Error>`.
30-
type Result<T> = std::result::Result<T, Box<error::Error>>;
29+
// Change the alias to `Box<dyn error::Error>`.
30+
type Result<T> = std::result::Result<T, Box<dyn error::Error>>;
3131
3232
#[derive(Debug)]
3333
struct EmptyVec;

0 commit comments

Comments
 (0)