From 8fe27ab582411f6c97aff8fdce42ca8f707fe984 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 25 Mar 2024 09:41:37 +0100 Subject: [PATCH] doc(sdk): Improve documentation of `RoomEvents::replace_gap_at`. --- crates/matrix-sdk/src/event_cache/store.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/matrix-sdk/src/event_cache/store.rs b/crates/matrix-sdk/src/event_cache/store.rs index e5b53612d..0b22b3f09 100644 --- a/crates/matrix-sdk/src/event_cache/store.rs +++ b/crates/matrix-sdk/src/event_cache/store.rs @@ -104,8 +104,8 @@ impl RoomEvents { /// Because the `gap_identifier` can represent non-gap chunk, this method /// returns a `Result`. /// - /// The returned `Chunk` represents the newly created `Chunk` that contains - /// the first events. + /// This method returns a reference to the (first if many) newly created + /// `Chunk` that contains the `items`. pub fn replace_gap_at( &mut self, events: I,