Do Day 2, playing around with nom v6

This commit is contained in:
2020-12-02 09:55:36 -08:00
parent e6be53686f
commit 5a495ddc17
6 changed files with 1130 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ use std::str::FromStr;
fn real_main() -> Result<(), TopLevelError> {
let mut numbers = Vec::new();
for argument in env::args().skip(2) {
for argument in env::args().skip(1) {
let contents = fs::read_to_string(argument)?;
for line in contents.lines() {
match u64::from_str(line) {