From 220ccfb52b4f7004b75f1cf0aa243f4c68d8e2e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 7 Oct 2020 15:26:44 +0200 Subject: [PATCH] matrix-sdk: Fix the arguments docs for sync_with_callback. --- matrix_sdk/src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix_sdk/src/client.rs b/matrix_sdk/src/client.rs index ad1fc71a..6fcd4835 100644 --- a/matrix_sdk/src/client.rs +++ b/matrix_sdk/src/client.rs @@ -1444,8 +1444,8 @@ impl Client { /// * `callback` - A callback that will be called every time a successful /// response has been fetched from the server. The callback must return /// a boolean which signalizes if the method should stop syncing. If the - /// callback returns `false` the sync will continue, if the callback - /// returns `true` the sync will be stopped. + /// callback returns `LoopCtrl::Continue` the sync will continue, if the + /// callback returns `LoopCtrl::Break` the sync will be stopped. /// /// # Examples ///