@@ -41,7 +41,7 @@ use crate::sync::WakerSet;
41
41
/// let (s, r) = channel(1);
42
42
///
43
43
/// // This call returns immediately because there is enough space in the channel.
44
- /// s.send(1 ).await;
44
+ /// s.send(1usize ).await;
45
45
///
46
46
/// task::spawn(async move {
47
47
/// // This call will have to wait because the channel is full.
@@ -323,7 +323,7 @@ impl<T> fmt::Debug for Sender<T> {
323
323
/// let (s, r) = channel(100);
324
324
///
325
325
/// task::spawn(async move {
326
- /// s.send(1 ).await;
326
+ /// s.send(1usize ).await;
327
327
/// task::sleep(Duration::from_secs(1)).await;
328
328
/// s.send(2).await;
329
329
/// });
@@ -346,7 +346,7 @@ pub struct Receiver<T> {
346
346
impl < T > Receiver < T > {
347
347
/// Receives a message from the channel.
348
348
///
349
- /// If the channel is emtpy and still has senders, this method
349
+ /// If the channel is empty and still has senders, this method
350
350
/// will wait until a message is sent into it. Once all senders
351
351
/// have been dropped it will return `None`.
352
352
///
@@ -361,7 +361,7 @@ impl<T> Receiver<T> {
361
361
/// let (s, r) = channel(1);
362
362
///
363
363
/// task::spawn(async move {
364
- /// s.send(1 ).await;
364
+ /// s.send(1usize ).await;
365
365
/// s.send(2).await;
366
366
/// // Then we drop the sender
367
367
/// });
0 commit comments