Skip to content

Commit 80e7efb

Browse files
authored
Add missing dyn
1 parent 7f698b7 commit 80e7efb

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)