docs: fix Sender/Receiver typo

This commit is contained in:
Chris Maniewski 2024-10-05 14:16:00 +02:00
parent b59143a4ab
commit 67836f955a
No known key found for this signature in database
GPG Key ID: 5853B5E298E10A05

View File

@ -310,12 +310,12 @@ impl<M: RawMutex, T: Clone, const N: usize> Watch<M, T, N> {
} }
} }
/// Create a new [`Receiver`] for the `Watch`. /// Create a new [`Sender`] for the `Watch`.
pub fn sender(&self) -> Sender<'_, M, T, N> { pub fn sender(&self) -> Sender<'_, M, T, N> {
Sender(Snd::new(self)) Sender(Snd::new(self))
} }
/// Create a new [`DynReceiver`] for the `Watch`. /// Create a new [`DynSender`] for the `Watch`.
pub fn dyn_sender(&self) -> DynSender<'_, T> { pub fn dyn_sender(&self) -> DynSender<'_, T> {
DynSender(Snd::new(self)) DynSender(Snd::new(self))
} }