sync: fix typo in oneshot send doc (#8026)

This commit is contained in:
winningMove
2026-04-08 19:31:22 +02:00
committed by GitHub
parent 98df02d7a4
commit 927df0e9d9
+1 -1
View File
@@ -583,7 +583,7 @@ impl<T> Sender<T> {
/// not be sent.
///
/// This method consumes `self` as only one value may ever be sent on a `oneshot`
/// channel. It is not marked async because sending a message to an `oneshot`
/// channel. It is not marked async because sending a message to a `oneshot`
/// channel never requires any form of waiting. Because of this, the `send`
/// method can be used in both synchronous and asynchronous code without
/// problems.