From 7941dda28d80deba2065b9183af2caadd0f4ec86 Mon Sep 17 00:00:00 2001 From: jrx Date: Fri, 27 Oct 2023 23:03:12 +0200 Subject: [PATCH] made rust docs happy --- crates/teloxide/src/dispatching/dispatcher.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/teloxide/src/dispatching/dispatcher.rs b/crates/teloxide/src/dispatching/dispatcher.rs index f6d154de..0a434e3c 100644 --- a/crates/teloxide/src/dispatching/dispatcher.rs +++ b/crates/teloxide/src/dispatching/dispatcher.rs @@ -482,8 +482,7 @@ where } } - /// Setups the `^C` handler in order to call [`shutdown`] when pressed. - /// [`shutdown`]: ShutdownToken::shutdown + /// Setups the `^C` handler in order to call [`ShutdownToken::shutdown`] when pressed. #[cfg(feature = "ctrlc_handler")] #[deprecated(since = "0.10.0", note = "use `enable_ctrlc_handler` on builder instead")] pub fn setup_ctrlc_handler(&mut self) -> &mut Self { @@ -491,9 +490,7 @@ where self } - /// Returns a shutdown token, which can later be used to shutdown - /// dispatching. - /// [`shutdown`]: ShutdownToken::shutdown + /// Returns a shutdown token, which can later be used to [`ShutdownToken::shutdown`]. pub fn shutdown_token(&self) -> ShutdownToken { self.state.clone() }