From 601e42fd2b2684ad20096dadc042f8b1a00e15ed Mon Sep 17 00:00:00 2001 From: Wenzhe Wang Date: Sun, 10 Dec 2023 22:36:03 +0800 Subject: [PATCH] fix: typo --- src/idioms/on-stack-dyn-dispatch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idioms/on-stack-dyn-dispatch.md b/src/idioms/on-stack-dyn-dispatch.md index 14a592ba..c1c9cf47 100644 --- a/src/idioms/on-stack-dyn-dispatch.md +++ b/src/idioms/on-stack-dyn-dispatch.md @@ -19,7 +19,7 @@ use std::fs; // These must live longer than `readable`, and thus are declared first: let (mut stdin_read, mut file_read); -// We need to ascribe the type to get dynamic dispatch. +// We need to describe the type to get dynamic dispatch. let readable: &mut dyn io::Read = if arg == "-" { stdin_read = io::stdin(); &mut stdin_read