From 6d3a652026d222bb0191c77406e1f4145a64c5f9 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Thu, 23 Jun 2022 12:59:34 +0200 Subject: [PATCH] Fix new warnings for embassy docs --- embassy/src/channel/pubsub/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy/src/channel/pubsub/mod.rs b/embassy/src/channel/pubsub/mod.rs index 9bfb845e0..11c889368 100644 --- a/embassy/src/channel/pubsub/mod.rs +++ b/embassy/src/channel/pubsub/mod.rs @@ -25,8 +25,8 @@ pub use subscriber::{DynSubscriber, Subscriber}; /// Any published message can be read by all subscribers. /// A publisher can choose how it sends its message. /// -/// - With [Publisher::publish] the publisher has to wait until there is space in the internal message queue. -/// - With [Publisher::publish_immediate] the publisher doesn't await and instead lets the oldest message +/// - With [Pub::publish()] the publisher has to wait until there is space in the internal message queue. +/// - With [Pub::publish_immediate()] the publisher doesn't await and instead lets the oldest message /// in the queue drop if necessary. This will cause any [Subscriber] that missed the message to receive /// an error to indicate that it has lagged. ///