Merge pull request #3394 from AtoVproject/fix/embassy-sync-sender-typo

docs: fix Sender/Receiver typo
This commit is contained in:
Henrik Alsér 2024-10-06 05:30:43 +00:00 committed by GitHub
commit 8f27349745
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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> {
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> {
DynSender(Snd::new(self))
}