From bccd3412c12e5133d40ed21518358676311ad796 Mon Sep 17 00:00:00 2001 From: Jan Danielsson Date: Sun, 18 Jun 2023 15:29:58 +0200 Subject: [PATCH] Add a missing backtick in sync_with_result_callback() documentation. --- crates/matrix-sdk/src/client/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/matrix-sdk/src/client/mod.rs b/crates/matrix-sdk/src/client/mod.rs index 3ba0cca1ae1..828fee91bf6 100644 --- a/crates/matrix-sdk/src/client/mod.rs +++ b/crates/matrix-sdk/src/client/mod.rs @@ -2345,12 +2345,12 @@ impl Client { /// /// * `callback` - A callback that will be called every time after a /// response has been received, failure or not. The callback returns a - /// `Result, too. When returning `Ok(LoopCtrl::Continue)` - /// the sync will continue, if the callback returns `Ok(LoopCtrl::Break)` - /// the sync will be stopped and the function returns `Ok(())`. In case - /// the callback can't handle the `Error` or has a different malfunction, - /// it can return an `Err(Error)`, which results in the sync ending and - /// the `Err(Error)` being returned. + /// `Result`, too. When returning + /// `Ok(LoopCtrl::Continue)` the sync will continue, if the callback + /// returns `Ok(LoopCtrl::Break)` the sync will be stopped and the + /// function returns `Ok(())`. In case the callback can't handle the + /// `Error` or has a different malfunction, it can return an `Err(Error)`, + /// which results in the sync ending and the `Err(Error)` being returned. /// /// # Return /// The sync runs until an error occurs that the callback can't handle or