Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvankhademi committed Apr 11, 2024
1 parent aa325a3 commit 9b625b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/agent/market_schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ fn holiday_day_schedule_parser<'s>(input: &mut &'s str) -> PResult<HolidayDaySch
separated_pair((take(2usize), take(2usize)), "/", schedule_day_kind_parser)
.parse_next(input)?;

// day and month are not validated to be correct dates
// if they are invalid, it will be ignored since there
// are no real dates that match the invalid input
let month = month_str.parse::<u32>().unwrap();
let day = day_str.parse::<u32>().unwrap();

Expand Down

0 comments on commit 9b625b5

Please sign in to comment.