diff --git a/Cargo.toml b/Cargo.toml index b725aa4d..bc602b0b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "deepgram" -version = "0.2.0" +version = "0.2.1" authors = ["Deepgram "] edition = "2021" description = "Official Rust SDK for Deepgram's automated speech recognition APIs." diff --git a/src/keys/options.rs b/src/keys/options.rs index 8285b5f5..9ded59e2 100644 --- a/src/keys/options.rs +++ b/src/keys/options.rs @@ -187,9 +187,9 @@ impl OptionsBuilder { self } - /// Set the expiration date. + /// Set the time to live in seconds. /// - /// This will unset the time to live in seconds. + /// This will unset the expiration date. /// /// # Examples /// @@ -197,7 +197,7 @@ impl OptionsBuilder { /// # use deepgram::keys::options::Options; /// # /// let options = Options::builder("New Key", ["member"]) - /// .expiration_date("2038-01-19") + /// .time_to_live_in_seconds(7776000) /// .build(); /// ``` /// @@ -205,12 +205,12 @@ impl OptionsBuilder { /// # use deepgram::keys::options::Options; /// # /// let options1 = Options::builder("New Key", ["member"]) - /// .time_to_live_in_seconds(7776000) /// .expiration_date("2038-01-19") + /// .time_to_live_in_seconds(7776000) /// .build(); /// /// let options2 = Options::builder("New Key", ["member"]) - /// .expiration_date("2038-01-19") + /// .time_to_live_in_seconds(7776000) /// .build(); /// /// assert_eq!(options1, options2);