Skip to content

Commit

Permalink
Add a missing backtick in sync_with_result_callback() documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
qrnch-jan committed Jun 18, 2023
1 parent 6d4874e commit bccd341
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/matrix-sdk/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<LoopCtrl, Error>, 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<LoopCtrl, Error>`, 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
Expand Down

0 comments on commit bccd341

Please sign in to comment.