Skip to content

Commit

Permalink
fix: typo (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysteryven authored Dec 12, 2023
1 parent f92f2e3 commit 29def25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/idioms/on-stack-dyn-dispatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29def25

Please sign in to comment.