mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-24 15:52:34 +00:00
Merge pull request #3394 from AtoVproject/fix/embassy-sync-sender-typo
docs: fix Sender/Receiver typo
This commit is contained in:
commit
8f27349745
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user