From 2036c3da9dc092be1d466a893513aa0ec4d71e89 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 3 Mar 2025 07:37:15 +0100 Subject: [PATCH] doc(sdk): Fix documentation of `with_events_mut`. --- crates/matrix-sdk/src/event_cache/room/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/matrix-sdk/src/event_cache/room/mod.rs b/crates/matrix-sdk/src/event_cache/room/mod.rs index d45cf608d..9cdb9d0b0 100644 --- a/crates/matrix-sdk/src/event_cache/room/mod.rs +++ b/crates/matrix-sdk/src/event_cache/room/mod.rs @@ -1244,9 +1244,8 @@ mod private { /// Gives a temporary mutable handle to the underlying in-memory events, /// and will propagate changes to the storage once done. /// - /// Returns the output of the given callback, as well as updates to the - /// linked chunk, as vector diff, so the caller may propagate - /// such updates, if needs be. + /// Returns the updates to the linked chunk, as vector diffs, so the + /// caller may propagate such updates, if needs be. #[must_use = "Updates as `VectorDiff` must probably be propagated via `RoomEventCacheUpdate`"] pub async fn with_events_mut( &mut self,