From acd90a85ace199bab237279d12aa7a35c47496dd Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Wed, 9 Dec 2020 19:55:52 -0800 Subject: [PATCH] day 7 comment fix Signed-off-by: Stephen Waits --- src/day07.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/day07.rs b/src/day07.rs index 740f82f..9b207d9 100644 --- a/src/day07.rs +++ b/src/day07.rs @@ -16,10 +16,10 @@ use std::collections::HashMap; struct PurseQuantity<'a>(usize, &'a str); -// parse data into a HashMap<&str, Vec<&str>> +// parse data into a HashMap<&str, Vec> // // for example: "light red bags contain 1 bright white bag, 2 muted yellow bags." -// becomes: { "light red": ["bright white", "muted yellow", "muted yellow"]} +// becomes: { "light red": [(1, "bright white"), (2, "muted yellow")] } // fn parse(s: &str) -> HashMap<&str, Vec> { s.lines()