Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Stolle <[email protected]>
  • Loading branch information
striezel authored Jul 14, 2023
1 parent 81d28d1 commit 0461ebe
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion UPGRADING-0.5-to-0.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ You can stay informed about updates on the access token by listening to `client.

## Quick Troubleshooting

You find yourself focussed with any of these, here are the steps to follow to upgrade your code accordingly:
You find yourself focused with any of these, here are the steps to follow to upgrade your code accordingly:

### warning: use of deprecated associated function `matrix_sdk::Client::register_event_handler`: Use [`Client::add_event_handler`](#method.add_event_handler) instead

Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-appservice/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ mod tests {
assert!(on_room_member_called);
}

// Reset this to check that next time it doesnt get called
// Reset this to check that next time it doesn't get called.
{
let mut on_room_member_called = on_state_member.lock().unwrap();
*on_room_member_called = false;
Expand Down
4 changes: 2 additions & 2 deletions crates/matrix-sdk-crypto/src/backups/keys/recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ mod tests {

let base64 = key.to_base64();
let decoded_key = RecoveryKey::from_base64(&base64)?;
assert_eq!(key.inner, decoded_key.inner, "The decode key does't match the original");
assert_eq!(key.inner, decoded_key.inner, "The decode key doesn't match the original");

RecoveryKey::from_base64("i").expect_err("The recovery key is too short");

Expand All @@ -242,7 +242,7 @@ mod tests {

let base64 = key.to_base58();
let decoded_key = RecoveryKey::from_base58(&base64)?;
assert_eq!(key.inner, decoded_key.inner, "The decode key does't match the original");
assert_eq!(key.inner, decoded_key.inner, "The decode key doesn't match the original");

let test_key =
RecoveryKey::from_base58("EsTcLW2KPGiFwKEA3As5g5c4BXwkqeeJZJV8Q9fugUMNUE4d")?;
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-ui/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl StateEventContent for NoStateEventContent {
type StateKey = String;
}
impl StaticStateEventContent for NoStateEventContent {
// We don't care about the `prev_content` since it wont deserialize with useful
// We don't care about the `prev_content` since it won't deserialize with useful
// data. Use this type which is `StateUnsigned` minus the `prev_content`
// field.
type Unsigned = MessageLikeUnsigned<NoMessageLikeEventContent>;
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-ui/src/room_list_service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub struct RoomListService {
/// `RoomListService` is a simple state-machine.
state: SharedObservable<State>,

/// Room cache, to avoid recreating `Room`s everytime users fetch them.
/// Room cache, to avoid recreating `Room`s every time users fetch them.
rooms: Arc<RwLock<RingBuffer<Room>>>,

/// The current viewport ranges.
Expand Down
2 changes: 1 addition & 1 deletion crates/matrix-sdk-ui/src/room_list_service/room.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl Room {

/// Subscribe to this room.
///
/// It means that all events from this room will be received everytime, no
/// It means that all events from this room will be received every time, no
/// matter how the `RoomList` is configured.
pub fn subscribe(&self, settings: Option<RoomSubscription>) {
self.inner.sliding_sync.subscribe_to_room(self.inner.room.room_id().to_owned(), settings)
Expand Down
20 changes: 10 additions & 10 deletions crates/matrix-sdk/src/sliding_sync/list/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ mod tests {
is_fully_loaded = true,
list_state = FullyLoaded,
},
// Now it's fully loaded, so the same request must be produced everytime.
// Now it's fully loaded, so the same request must be produced every time.
next => {
ranges = 0..=24, // the range starts at 0 now!
is_fully_loaded = true,
Expand Down Expand Up @@ -1122,7 +1122,7 @@ mod tests {
is_fully_loaded = true,
list_state = FullyLoaded,
},
// Now it's fully loaded, so the same request must be produced everytime.
// Now it's fully loaded, so the same request must be produced every time.
next => {
ranges = 0..=21, // the range starts at 0 now!
is_fully_loaded = true,
Expand Down Expand Up @@ -1164,7 +1164,7 @@ mod tests {
is_fully_loaded = true,
list_state = FullyLoaded,
},
// Now it's fully loaded, so the same request must be produced everytime.
// Now it's fully loaded, so the same request must be produced every time.
next => {
ranges = 0..=24,
is_fully_loaded = true,
Expand Down Expand Up @@ -1206,7 +1206,7 @@ mod tests {
is_fully_loaded = true,
list_state = FullyLoaded,
},
// Now it's fully loaded, so the same request must be produced everytime.
// Now it's fully loaded, so the same request must be produced every time.
next => {
ranges = 0..=21,
is_fully_loaded = true,
Expand Down Expand Up @@ -1238,7 +1238,7 @@ mod tests {
is_fully_loaded = true,
list_state = FullyLoaded,
},
// Now it's fully loaded, so the same request must be produced everytime.
// Now it's fully loaded, so the same request must be produced every time.
next => {
ranges = 0..=10, 42..=153,
is_fully_loaded = true,
Expand Down Expand Up @@ -1270,7 +1270,7 @@ mod tests {
is_fully_loaded = true,
list_state = FullyLoaded,
},
// Now it's fully loaded, so the same request must be produced everytime.
// Now it's fully loaded, so the same request must be produced every time.
next => {
ranges = 0..=10, 42..=153,
is_fully_loaded = true,
Expand Down Expand Up @@ -1341,7 +1341,7 @@ mod tests {
is_fully_loaded = true,
list_state = FullyLoaded,
},
// Now it's fully loaded, so the same request must be produced everytime.
// Now it's fully loaded, so the same request must be produced every time.
next => {
ranges = 0..=10, 42..=153,
is_fully_loaded = true,
Expand Down Expand Up @@ -1377,7 +1377,7 @@ mod tests {
is_fully_loaded = true,
list_state = FullyLoaded,
},
// Now it's fully loaded, so the same request must be produced everytime.
// Now it's fully loaded, so the same request must be produced every time.
next => {
ranges = 0..=24,
is_fully_loaded = true,
Expand Down Expand Up @@ -1413,7 +1413,7 @@ mod tests {
is_fully_loaded = true,
list_state = FullyLoaded,
},
// Now it's fully loaded, so the same request must be produced everytime.
// Now it's fully loaded, so the same request must be produced every time.
next => {
ranges = 0..=24, // the range starts at 0 now!
is_fully_loaded = true,
Expand Down Expand Up @@ -1446,7 +1446,7 @@ mod tests {
is_fully_loaded = true,
list_state = FullyLoaded,
},
// Now it's fully loaded, so the same request must be produced everytime.
// Now it's fully loaded, so the same request must be produced every time.
next => {
ranges = 0..=100,
is_fully_loaded = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//!
//! * There is a `batch_size`,
//! * Each request asks to load a new range, always starting from 0, but where
//! the end is incremented by `batch_size` everytime.
//! the end is incremented by `batch_size` every time.
//!
//! The number of rooms to load is capped by the
//! [`SlidingSyncList::maximum_number_of_rooms`], i.e. the real number of
Expand Down

0 comments on commit 0461ebe

Please sign in to comment.