From 600e197359ad187c0cd82d94ef37d1fd63b033ec Mon Sep 17 00:00:00 2001 From: Ishan Bhanuka Date: Sun, 24 Mar 2024 23:04:26 -0400 Subject: [PATCH] Use eprintln --- fs-storage/examples/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs-storage/examples/cli.rs b/fs-storage/examples/cli.rs index 4dba10de..af96f9d7 100644 --- a/fs-storage/examples/cli.rs +++ b/fs-storage/examples/cli.rs @@ -75,6 +75,6 @@ fn main() { let mut fs = FileStorage::new("cli".to_string(), Path::new(path)); fs.write_file(&kv_pairs).unwrap(); } - _ => println!("Invalid command. Use 'read' or 'write'."), + _ => eprintln!("Invalid command. Use 'read' or 'write'."), } }