diff options
author | Fredrik Meringdal <fredrikmeringdal@Fredriks-MacBook-Pro.local> | 2021-02-03 23:28:51 +0100 |
---|---|---|
committer | Fredrik Meringdal <fredrikmeringdal@Fredriks-MacBook-Pro.local> | 2021-02-03 23:28:51 +0100 |
commit | 1cba0c366becf94bb2934f12658319b283283ba1 (patch) | |
tree | 3e32be22985c824596b9531e85df0e47d614da9d /src/lib.rs | |
parent | 012d5c2b5f0336e0f8ffa2670a28de2d451643a7 (diff) | |
download | rust_rrule-1cba0c366becf94bb2934f12658319b283283ba1.zip |
typos
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -55,22 +55,22 @@ //! let after = UTC.ymd(2012, 2, 1).and_hms(10, 0, 0); //! let inc = true; // Wheter dates equals to after should be added; //! -//! let occurences_after_date = rrule.clone() +//! let occurence_after_date = rrule.clone() //! .into_iter() //! .skip_while(|d| if inc { *d <= after } else { *d < after }) //! .next(); -//! assert_eq!(occurences_after_date, rrule.after(after, inc)); +//! assert_eq!(occurence_after_date, rrule.after(after, inc)); //! //! //! // Before a date //! let before = UTC.ymd(2012, 4, 1).and_hms(10, 0, 0); //! let inc = true; // Wheter dates equals to before should be added; //! -//! let occurences_before_date = rrule.clone() +//! let occurence_before_date = rrule.clone() //! .into_iter() //! .take_while(|d| if inc { *d <= before } else { *d < before }) //! .last(); -//! assert_eq!(occurences_before_date, rrule.before(before, inc)); +//! assert_eq!(occurence_before_date, rrule.before(before, inc)); //! //! ```` //! |