From 7aa984d405f9cbdd8f889882dbd0ff5904e8ce39 Mon Sep 17 00:00:00 2001 From: beyarkay Date: Thu, 21 Sep 2023 12:59:33 +0200 Subject: [PATCH] Add comments about which day of the week is Monday --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index b3da32be..e1042ed7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -763,6 +763,7 @@ mod read { .map(|res| Into::::into(res.unwrap())) .collect::>(); } else if headers.iter().any(|h| h == "day_of_week") { + // Monday is day 1 raw = reader .deserialize::() .map(|res| Into::::into(res.unwrap())) @@ -1350,6 +1351,7 @@ mod tests { #[test] fn first_day_of_week() { + // Monday is 1 let start_dt = rfc3339("2022-01-01T00:00:00+02:00"); let finsh_dt = rfc3339("2022-02-01T00:00:00+02:00"); let dor = 1; // Sunday