Merge pull request #308 from epage/print

Improve behavior for diff mode
This commit is contained in:
Ed Page 2021-07-06 07:43:26 -07:00 committed by GitHub
commit 1559bc74bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -235,8 +235,10 @@ impl FileChecker for DiffTypos {
"fixed",
0,
);
let stdout = std::io::stdout();
let mut handle = stdout.lock();
for line in diff {
print!("{}", line);
write!(handle, "{}", line)?;
}
}