diff options
Diffstat (limited to 'src/monthinfo.rs')
-rw-r--r-- | src/monthinfo.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/monthinfo.rs b/src/monthinfo.rs index 8ccda94..c0af98a 100644 --- a/src/monthinfo.rs +++ b/src/monthinfo.rs @@ -23,7 +23,7 @@ pub fn rebuild_month( }; let mut ranges: Vec<(isize, isize)> = vec![]; - if options.freq == Frequenzy::YEARLY { + if options.freq == Frequenzy::Yearly { if options.bymonth.is_empty() { ranges = vec![(0, yearlen as isize)]; } else { @@ -32,7 +32,7 @@ pub fn rebuild_month( ranges.push((mrange[m - 1] as isize, mrange[m] as isize)) } } - } else if options.freq == Frequenzy::MONTHLY { + } else if options.freq == Frequenzy::Monthly { ranges.push((mrange[month - 1] as isize, mrange[month] as isize)); } |