From 083a79a408f088504f9d2f4a669da08bdb1cb392 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Thu, 22 Jun 2023 14:08:09 +0200 Subject: [PATCH] doc(ui): Fix intra-links. --- crates/matrix-sdk-ui/src/room_list/mod.rs | 6 +++--- crates/matrix-sdk-ui/src/room_list/room_list.rs | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/matrix-sdk-ui/src/room_list/mod.rs b/crates/matrix-sdk-ui/src/room_list/mod.rs index 673e3d3a9..31c9c644a 100644 --- a/crates/matrix-sdk-ui/src/room_list/mod.rs +++ b/crates/matrix-sdk-ui/src/room_list/mod.rs @@ -166,9 +166,9 @@ impl RoomListService { /// /// It's the main method of this entire API. Calling `sync` allows to /// receive updates on the room list: new rooms, rooms updates etc. Those - /// updates can be read with [`Self::entries`]. This method returns a - /// [`Stream`] where produced items only hold an empty value in case of a - /// sync success, otherwise an error. + /// updates can be read with [`RoomList::entries`] for example. This method + /// returns a [`Stream`] where produced items only hold an empty value + /// in case of a sync success, otherwise an error. /// /// The `RoomListService`' state machine is run by this method. /// diff --git a/crates/matrix-sdk-ui/src/room_list/room_list.rs b/crates/matrix-sdk-ui/src/room_list/room_list.rs index c55be82da..b417ff166 100644 --- a/crates/matrix-sdk-ui/src/room_list/room_list.rs +++ b/crates/matrix-sdk-ui/src/room_list/room_list.rs @@ -22,7 +22,8 @@ use tokio::{spawn, task::JoinHandle}; use super::{Error, State}; -/// A `RoomList` represents a list of rooms, from a [`RoomListService`]. +/// A `RoomList` represents a list of rooms, from a +/// [`RoomListService`](super::RoomListService). #[derive(Debug)] pub struct RoomList { sliding_sync_list: SlidingSyncList,