Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
DeMorgan's laws apply to disjunctions, not implications.
  • Loading branch information
marcospb19 authored Nov 10, 2021
1 parent 1026fa1 commit 1579a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ pub fn run(args: Opts, question_policy: QuestionPolicy) -> crate::Result<()> {
// We checked above that input_extensions isn't empty, so files[0] has an extension.
//
// Path::extension says: "if there is no file_name, then there is no extension".
// Using DeMorgan's law: "if there is extension, then there is file_name".
// Contrapositive statement: "if there is extension, then there is file_name".
info!(
"Partial compression detected. Compressing {} into {}",
to_utf(files[0].as_path().file_name().unwrap()),
Expand Down

0 comments on commit 1579a48

Please sign in to comment.