From f1b78d53d7d0009fdef8f0e220bc0c421288c514 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Thu, 23 Nov 2023 00:08:16 +0300 Subject: general clean ups for the docs --- core/src/event.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/src/event.rs') diff --git a/core/src/event.rs b/core/src/event.rs index b856385..0503e88 100644 --- a/core/src/event.rs +++ b/core/src/event.rs @@ -169,7 +169,7 @@ where listener } - /// Removes an event listener attached to the given topic. + /// Removes the event listener attached to the given topic. async fn remove(&self, topic: &T, event_id: &str, listener_id: &EventListenerID) { let topics = &mut self.listeners.lock().await; if !topics.contains_key(topic) { @@ -190,7 +190,7 @@ where } } -/// EventListener listens for and receives events from the `EventSys`. +/// EventListener listens for and receives events from the [`EventSys`]. pub struct EventListener { id: EventListenerID, recv_chan: Receiver, @@ -260,7 +260,7 @@ where } } -/// An event within the `EventSys`. +/// An event within the [`EventSys`]. #[derive(Clone, Debug)] pub struct Event { /// The time at which the event was created. -- cgit v1.2.3