mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 15:01:45 +01:00
Fix docs
This commit is contained in:
parent
6e74e5e087
commit
a8d490d0ae
1 changed files with 2 additions and 2 deletions
|
@ -143,10 +143,10 @@ impl<E> ErrorHandler<E> for IgnoringErrorHandler {
|
||||||
/// let result: Result<String, Infallible> = "str".try_into();
|
/// let result: Result<String, Infallible> = "str".try_into();
|
||||||
/// match result {
|
/// match result {
|
||||||
/// Ok(string) => println!("{}", string),
|
/// 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)
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue