summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-11-03 21:40:57 +0100
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-11-03 21:40:57 +0100
commit9755c753adcda41620d9609102bc03ce278257f9 (patch)
treebd57ec7658306112901989c77dd3e7a217fd8ab6
parentd28241cf589d2773bd3e28e05ca173c58561e913 (diff)
downloadrust_rrule-9755c753adcda41620d9609102bc03ce278257f9.zip
tpos
-rw-r--r--src/lib.rs4
-rw-r--r--src/rrule.rs1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 806b942..0fdbfde 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -7,13 +7,13 @@
//! provided by the [chrono](https://crates.io/crates/chrono) and [chrono-tz](https://crates.io/crates/chrono-tz) crates.
//!
//! # Building RRule and RRuleSet
-//! Both of the types implements the `std::str::FromStr` trait so that they can be parsed and built from a `str`. `RRule`
+//! Both types implements the `std::str::FromStr` trait so that they can be parsed and built from a `str`. `RRule`
//! can additionally be constructured from the `Option` type which help build the recurrence rule. `RRuleSet`
//! can also be built by composing mutliple `RRule`s for its rrule and exrule properties and DateTime<Tz> for its
//! exdate and rdate properties. See the examples below.
//!
//! # Interface
-//! `RRule` and `RRuleSet` have the same interface for generating recurrences. The four methods for "querying" recurrences are:
+//! `RRule` and `RRuleSet` have the same interface for generating recurrences. The four methods for "querying" for recurrences are:
//! - `all`: Generate all recurrences that matches the rules
//! - `between`: Generate all recurrences that matches the rules and are between two given dates
//! - `before`: Generate the last recurrence that matches the rules and is before a given date
diff --git a/src/rrule.rs b/src/rrule.rs
index c2a080e..4ffcde9 100644
--- a/src/rrule.rs
+++ b/src/rrule.rs
@@ -11,6 +11,7 @@ pub struct RRule {
pub options: ParsedOptions,
}
+
impl RRule {
pub fn new(options: ParsedOptions) -> Self {
Self { options }