diff options
author | j-james | 2022-12-03 02:39:47 +0000 |
---|---|---|
committer | j-james | 2022-12-03 02:39:47 +0000 |
commit | f5f940c52b38a5e17092f5896dc2fc13e8443478 (patch) | |
tree | 433ebcfee2ea54432734b44d8f51f95fc5ac8a69 /util | |
parent | 13b3ae4211631c74b9249a6033869f75e036fad2 (diff) |
Day Two
Diffstat (limited to 'util')
-rw-r--r-- | util/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/main.rs b/util/main.rs index 8b1acab..f6f1868 100644 --- a/util/main.rs +++ b/util/main.rs @@ -2,7 +2,7 @@ use std::env; use std::fs; fn main() { - let args = env::args().nth(1).unwrap(); + let args = env::args().nth(1).expect("missing input"); let input = fs::read_to_string(args).unwrap(); println!("{}", input); } |