Merge pull request #1 from trstruth/trstruth/rwc-starter-code

Apply some minor fixes to rwc starter code
This commit is contained in:
Ryan Eberhardt 2020-11-16 00:35:55 -08:00 committed by GitHub
commit 120a427bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,10 +3,10 @@ use std::process;
fn main() { fn main() {
let args: Vec<String> = env::args().collect(); let args: Vec<String> = env::args().collect();
if args.len() < 3 { if args.len() < 2 {
println!("Too few arguments."); println!("Too few arguments.");
process::exit(1); process::exit(1);
} }
let filename1 = &args[1]; let filename = &args[1];
// Your code here :) // Your code here :)
} }