From 2893f73f4735ba4a2732b73b7f71f8f3556d7bbe Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Tue, 23 Aug 2022 23:27:06 +0800 Subject: [PATCH] Fix typos Found via `codespell -L crate`. --- README.md | 2 +- tests/test_exact_output.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f201113..a41a250 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Usage: dust -f (Count files instead of diskspace) Usage: dust -t (Group by filetype) Usage: dust -z 10M (min-size, Only include files larger than 10M) Usage: dust -e regex (Only include files matching this regex (eg dust -e "\.png$" would match png files)) -Usage: dust -v regex (Exculde files matching this regex (eg dust -v "\.png$" would ignore png files)) +Usage: dust -v regex (Exclude files matching this regex (eg dust -v "\.png$" would ignore png files)) ``` diff --git a/tests/test_exact_output.rs b/tests/test_exact_output.rs index 65e3858..4302c0b 100644 --- a/tests/test_exact_output.rs +++ b/tests/test_exact_output.rs @@ -17,7 +17,7 @@ static INIT: Once = Once::new(); /// Copy to /tmp dir - we assume that the formatting of the /tmp partition /// is consistent. If the tests fail your /tmp filesystem probably differs fn copy_test_data(dir: &str) { - // First remove the existing directory - just incase it is there and has incorrect data + // First remove the existing directory - just in case it is there and has incorrect data let last_slash = dir.rfind('/').unwrap(); let last_part_of_dir = dir.chars().skip(last_slash).collect::(); let _ = Command::new("rm") @@ -196,7 +196,7 @@ pub fn test_apparent_size() { } fn apparent_size_output() -> Vec { - // The apparent directory sizes are too unpredictable and system dependant to try and match + // The apparent directory sizes are too unpredictable and system dependent to try and match let files = r#" 0B ┌── a_file 6B ├── hello_file