diff --git a/src/lib.rs b/src/lib.rs index e904f6a5..8d343f72 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,7 @@ //! }; //! //! let bot = Bot::from_env() -//! .parse_mode(ParseMode::MarkdownV2) +//! .parse_mode(ParseMode::MarkdownV2); //! //! let me = bot.get_me().await?; //! diff --git a/src/requests/request.rs b/src/requests/request.rs index d39c9d64..bd5113af 100644 --- a/src/requests/request.rs +++ b/src/requests/request.rs @@ -56,12 +56,11 @@ where /// // Note: it's recommended to `Requester` instead of creating requests directly /// let method = GetMe::new(); /// let request = JsonRequest::new(bot, method); + /// let request_clone = request.clone(); /// let _: Me = request.send().await.unwrap(); /// /// // You can also just await requests, without calling `send`: - /// let method = GetMe::new(); - /// let request = JsonRequest::new(bot, method); - /// let _: Me = request.await.unwrap(); + /// let _: Me = request_clone.await.unwrap(); /// # }; /// ``` #[must_use = "Futures are lazy and do nothing unless polled or awaited"]