From a8d490d0ae30b51f3bba160367454329acab6c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=8B=D1=80=D1=86=D0=B5=D0=B2=20=D0=92=D0=B0=D0=B4?= =?UTF-8?q?=D0=B8=D0=BC=20=D0=98=D0=B3=D0=BE=D1=80=D0=B5=D0=B2=D0=B8=D1=87?= Date: Thu, 4 Jul 2024 21:24:25 +0300 Subject: [PATCH] Fix docs --- crates/teloxide/src/error_handlers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/teloxide/src/error_handlers.rs b/crates/teloxide/src/error_handlers.rs index 14c2582b..4a500bb8 100644 --- a/crates/teloxide/src/error_handlers.rs +++ b/crates/teloxide/src/error_handlers.rs @@ -143,10 +143,10 @@ impl ErrorHandler for IgnoringErrorHandler { /// let result: Result = "str".try_into(); /// match result { /// Ok(string) => println!("{}", string), -/// Err(inf) => IgnoringErrorHandlerSafe::new().handle_error(inf).await, +/// Err(inf) => IgnoringErrorHandlerSafe::new().handle_error(inf, None).await, /// } /// -/// IgnoringErrorHandlerSafe::new().handle_error(return).await; // return type of `return` is `!` (aka never) +/// IgnoringErrorHandlerSafe::new().handle_error(return, None).await; // return type of `return` is `!` (aka never) /// # } /// ``` ///