diff --git a/crates/matrix-sdk/src/sliding_sync/list/request_generator.rs b/crates/matrix-sdk/src/sliding_sync/list/request_generator.rs index b2fa7934a..3d4736f2c 100644 --- a/crates/matrix-sdk/src/sliding_sync/list/request_generator.rs +++ b/crates/matrix-sdk/src/sliding_sync/list/request_generator.rs @@ -296,7 +296,7 @@ fn create_range( end = min(end, maximum_number_of_rooms); } - // Finally, because the bounds of the range are inclusive, 1 is substracted. + // Finally, because the bounds of the range are inclusive, 1 is subtracted. end = end.saturating_sub(1); // Make sure `start` is smaller than `end`. It can happen if `start` is greater