From ca5cabb7e18cbc2d0e205c5f993815d2654075fa Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Wed, 15 Mar 2023 18:08:19 +0100 Subject: [PATCH] doc(sdk): Fix a typo. --- crates/matrix-sdk/src/sliding_sync/list/request_generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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