Skip to content

Commit 0a23400

Browse files
committed
doc(common): Fix a typo.
1 parent fb21d8f commit 0a23400

File tree

1 file changed

+2
-2
lines changed
  • crates/matrix-sdk-common/src/linked_chunk

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,12 +872,12 @@ impl<const CAP: usize, Item, Gap> Drop for LinkedChunk<CAP, Item, Gap> {
872872
}
873873

874874
/// A [`LinkedChunk`] can be safely sent over thread boundaries if `Item: Send`
875-
/// and `Gap: Send`. The only unsafe part if around the `NonNull`, but the API
875+
/// and `Gap: Send`. The only unsafe part is around the `NonNull`, but the API
876876
/// and the lifetimes to deref them are designed safely.
877877
unsafe impl<const CAP: usize, Item: Send, Gap: Send> Send for LinkedChunk<CAP, Item, Gap> {}
878878

879879
/// A [`LinkedChunk`] can be safely share between threads if `Item: Sync` and
880-
/// `Gap: Sync`. The only unsafe part if around the `NonNull`, but the API and
880+
/// `Gap: Sync`. The only unsafe part is around the `NonNull`, but the API and
881881
/// the lifetimes to deref them are designed safely.
882882
unsafe impl<const CAP: usize, Item: Sync, Gap: Sync> Sync for LinkedChunk<CAP, Item, Gap> {}
883883

0 commit comments

Comments
 (0)