fix doc tests

This commit is contained in:
Maybe Waffle 2022-09-23 22:42:53 +04:00
parent 86cac381e7
commit 2a20fdd1c0
2 changed files with 3 additions and 4 deletions

View file

@ -18,7 +18,7 @@
//! };
//!
//! let bot = Bot::from_env()
//! .parse_mode(ParseMode::MarkdownV2)
//! .parse_mode(ParseMode::MarkdownV2);
//!
//! let me = bot.get_me().await?;
//!

View file

@ -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"]