aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Maniewski <[email protected]>2024-10-05 14:16:00 +0200
committerChris Maniewski <[email protected]>2024-10-05 14:16:00 +0200
commit67836f955af133fa2ea7427172bbf352c51e4ab2 (patch)
treef42f0810d6e34595d82776db519456b84e2ad72a
parentb59143a4ab62bb2fd319e812102ce9d01f6a0a52 (diff)
docs: fix Sender/Receiver typo
-rw-r--r--embassy-sync/src/watch.rs4
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 }