diff options
| -rw-r--r-- | embassy-sync/src/watch.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-sync/src/watch.rs b/embassy-sync/src/watch.rs index 336e64ba9..59798d04f 100644 --- a/embassy-sync/src/watch.rs +++ b/embassy-sync/src/watch.rs | |||
| @@ -310,12 +310,12 @@ impl<M: RawMutex, T: Clone, const N: usize> Watch<M, T, N> { | |||
| 310 | } | 310 | } |
| 311 | } | 311 | } |
| 312 | 312 | ||
| 313 | /// Create a new [`Receiver`] for the `Watch`. | 313 | /// Create a new [`Sender`] for the `Watch`. |
| 314 | pub fn sender(&self) -> Sender<'_, M, T, N> { | 314 | pub fn sender(&self) -> Sender<'_, M, T, N> { |
| 315 | Sender(Snd::new(self)) | 315 | Sender(Snd::new(self)) |
| 316 | } | 316 | } |
| 317 | 317 | ||
| 318 | /// Create a new [`DynReceiver`] for the `Watch`. | 318 | /// Create a new [`DynSender`] for the `Watch`. |
| 319 | pub fn dyn_sender(&self) -> DynSender<'_, T> { | 319 | pub fn dyn_sender(&self) -> DynSender<'_, T> { |
| 320 | DynSender(Snd::new(self)) | 320 | DynSender(Snd::new(self)) |
| 321 | } | 321 | } |
