Skip to content

Commit 52c0614

Browse files
committed
doc(sdk): Fix tiny typos.
1 parent 39a6a2e commit 52c0614

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ pub enum Error {
115115
identifier: ChunkIdentifier,
116116
},
117117

118-
/// A chunk is a gap, and it was expected to be an items.
118+
/// A chunk is a gap chunk, and it was expected to be an items.
119119
#[error("The chunk is a gap: `{identifier:?}`")]
120120
ChunkIsAGap {
121121
/// The chunk identifier.
122122
identifier: ChunkIdentifier,
123123
},
124124

125-
/// A chunk is an items, and it was expected to be a gap.
125+
/// A chunk is an items chunk, and it was expected to be a gap.
126126
#[error("The chunk is an item: `{identifier:?}`")]
127127
ChunkIsItems {
128128
/// The chunk identifier.

crates/matrix-sdk/src/event_cache/linked_chunk/updates.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ pub enum Update<Item, Gap> {
7979
/// The last items of a chunk have been detached, i.e. the chunk has been
8080
/// truncated.
8181
DetachLastItems {
82-
/// The split position. Before this position (`[..position]`), items are
83-
/// kept, from this position (`[position..]`), items are
82+
/// The split position. Before this position (`..position`), items are
83+
/// kept, from this position (`position..`), items are
8484
/// detached.
8585
at: Position,
8686
},

0 commit comments

Comments
 (0)