From 31435f78eff0917ba767ae1a08a040dc8b51e8f2 Mon Sep 17 00:00:00 2001 From: Yasushi Sakai Date: Sat, 4 Aug 2018 12:02:56 -0400 Subject: [PATCH] ch20-02-mutlithreaded.md listing 20-21 deleting 'dyn' for call_box --- 2018-edition/src/ch20-02-multithreaded.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2018-edition/src/ch20-02-multithreaded.md b/2018-edition/src/ch20-02-multithreaded.md index ff6986926..25eb9a540 100644 --- a/2018-edition/src/ch20-02-multithreaded.md +++ b/2018-edition/src/ch20-02-multithreaded.md @@ -1020,11 +1020,11 @@ shown in Listing 20-21. ```rust,ignore trait FnBox { - fn call_box(self: Box); + fn call_box(self: Box); } impl FnBox for F { - fn call_box(self: Box) { + fn call_box(self: Box) { (*self)() } }