diff --git a/src/lib.rs b/src/lib.rs index 9f1b963..e826cea 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -100,6 +100,11 @@ pub fn from_str(s: &str) -> Result { /// * `date` - A `Date` instance representing the base date for the calculation /// * `s` - A string slice representing the relative time. /// +/// # Errors +/// +/// This function will return `Err(ParseDurationError::InvalidInput)` if the input string +/// cannot be parsed as a relative time. +/// /// # Examples /// /// ```