Skip to content

Commit 82ef623

Browse files
committed
doc(sdk): Precise in which context a variable can or cannot be used.
1 parent 3b9ae3e commit 82ef623

File tree

1 file changed

+3
-0
lines changed
  • crates/matrix-sdk/src/event_cache/room

1 file changed

+3
-0
lines changed

crates/matrix-sdk/src/event_cache/room/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,9 @@ mod private {
922922

923923
// We've reached the start on disk, if and only if, there was no chunk prior to
924924
// the one we just loaded.
925+
//
926+
// This value is correct, if and only if, it is used for a chunk content of kind
927+
// `Items`.
925928
let reached_start = new_first_chunk.previous.is_none();
926929

927930
if let Err(err) = self.events.insert_new_chunk_as_first(new_first_chunk) {

0 commit comments

Comments
 (0)