Skip to content

Commit 444a82f

Browse files
committed
fix(sdk): Small documentation update
1 parent 6e218bd commit 444a82f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/matrix-sdk/src/room/timeline/pagination.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ impl<'a> PaginationOptions<'a> {
99
/// Do a single pagination request, asking the server for the given
1010
/// maximum number of events.
1111
///
12-
/// The server may choose to return fewer events, even if the end of the
13-
/// visible timeline is not yet reached.
12+
/// The server may choose to return fewer events, even if the start or end
13+
/// of the visible timeline is not yet reached.
1414
pub fn single_request(event_limit: u16) -> Self {
1515
Self::new(PaginationOptionsInner::SingleRequest { event_limit_if_first: Some(event_limit) })
1616
}
1717

1818
/// Continually paginate with a fixed `limit` until at least the given
19-
/// amount of timeline items have been added (unless the end of the
19+
/// amount of timeline items have been added (unless the start or end of the
2020
/// visible timeline is reached).
2121
///
2222
/// The `event_limit` represents the maximum number of events the server

0 commit comments

Comments
 (0)