mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 00:02:28 +00:00
docs: fix Sender/Receiver typo
This commit is contained in:
parent
b59143a4ab
commit
67836f955a
@ -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))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user