[throttle] fix doc test

This commit is contained in:
Waffle 2020-10-03 03:30:34 +03:00
parent e757999135
commit 2d7e40a473

View file

@ -122,9 +122,10 @@ impl Default for Limits {
///
/// ## Examples
///
/// ```
/// ```no_run (throttle fails to spawn task without tokio runtime)
/// use teloxide_core::{bot::Limits, requests::RequesterExt, Bot};
///
/// # #[allow(deprecated)]
/// let bot = Bot::new("TOKEN").throttle(Limits::default());
///
/// /* send many requests here */