From 57b68614af71b81cf2ce8eea5fd0809ab5524811 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Wed, 20 Mar 2024 15:50:51 +0100 Subject: [PATCH] doc(sdk): US vs UK strike again. --- crates/matrix-sdk/src/event_cache/linked_chunk.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/matrix-sdk/src/event_cache/linked_chunk.rs b/crates/matrix-sdk/src/event_cache/linked_chunk.rs index 742e6aeab..f0d617b68 100644 --- a/crates/matrix-sdk/src/event_cache/linked_chunk.rs +++ b/crates/matrix-sdk/src/event_cache/linked_chunk.rs @@ -369,7 +369,7 @@ impl LinkedChunk { } } - /// Search backward for a chunk, and return its identifier. + /// Search backwards for a chunk, and return its identifier. pub fn chunk_identifier<'a, P>(&'a self, mut predicate: P) -> Option where P: FnMut(&'a Chunk) -> bool, @@ -377,7 +377,7 @@ impl LinkedChunk { self.rchunks().find_map(|chunk| predicate(chunk).then(|| chunk.identifier())) } - /// Search backward for an item, and return its position. + /// Search backwards for an item, and return its position. pub fn item_position<'a, P>(&'a self, mut predicate: P) -> Option where P: FnMut(&'a Item) -> bool, @@ -385,7 +385,7 @@ impl LinkedChunk { self.ritems().find_map(|(item_position, item)| predicate(item).then_some(item_position)) } - /// Iterate over the chunks, backward. + /// Iterate over the chunks, backwards. /// /// It iterates from the last to the first chunk. pub fn rchunks(&self) -> LinkedChunkIterBackward<'_, Item, Gap, CAP> {