summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fredrikmeringdal@Fredriks-MacBook-Pro.local>2021-02-03 23:28:51 +0100
committerFredrik Meringdal <fredrikmeringdal@Fredriks-MacBook-Pro.local>2021-02-03 23:28:51 +0100
commit1cba0c366becf94bb2934f12658319b283283ba1 (patch)
tree3e32be22985c824596b9531e85df0e47d614da9d /src/lib.rs
parent012d5c2b5f0336e0f8ffa2670a28de2d451643a7 (diff)
downloadrust_rrule-1cba0c366becf94bb2934f12658319b283283ba1.zip
typos
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6fe3223..15f9f6c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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));
//!
//! ````
//!