summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/README.md b/README.md
index f394759..c66070f 100644
--- a/README.md
+++ b/README.md
@@ -11,9 +11,9 @@
```rust
extern crate rrule;
-use rrule::build_rrule;
+use rrule::RRule;
-let mut rrule = build_rrule("DTSTART:20120201T093000Z\nRRULE:FREQ=DAILY;COUNT=3").unwrap();
+let mut rrule: RRule = "DTSTART:20120201T093000Z\nRRULE:FREQ=DAILY;COUNT=3".parse().unwrap();
// Get all recurrences of the rrule
let recurrences = rrule.all();
@@ -24,6 +24,12 @@ assert_eq!(recurrences.len(), 3);
[Documentation and more examples](https://docs.rs/rrule)
+## License
+
+This project is licensed under the [MIT license].
+
+[mit license]: https://github.com/fmeringdal/rust_rrule/blob/main/LICENSE
+
# Inspired by
- [python-dateutil library](http://labix.org/python-dateutil/)