From e551efec8d9d10a3933efc8bcc4b80673aac9d3f Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Wed, 18 Jun 2025 13:17:22 +0200 Subject: [PATCH] doc(sdk): Fix comment of `RoomEventCacheState::handle_sync`. This patch fixes a comment about `RoomEventCacheState::handle_sync` returned values. --- crates/matrix-sdk/src/event_cache/room/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/matrix-sdk/src/event_cache/room/mod.rs b/crates/matrix-sdk/src/event_cache/room/mod.rs index 717076fb7..d819f16ce 100644 --- a/crates/matrix-sdk/src/event_cache/room/mod.rs +++ b/crates/matrix-sdk/src/event_cache/room/mod.rs @@ -1295,8 +1295,8 @@ mod private { /// It may send room event cache updates to the given sender, if it /// generated any of those. /// - /// Returns true if a new gap (previous-batch token) has been inserted, - /// false otherwise. + /// Returns `true` for the first part of the tuple if a new gap + /// (previous-batch token) has been inserted, `false` otherwise. #[must_use = "Propagate `VectorDiff` updates via `RoomEventCacheUpdate`"] pub async fn handle_sync( &mut self,