@@ -41,7 +41,7 @@ use crate::sync::WakerSet;
4141/// let (s, r) = channel(1);
4242///
4343/// // This call returns immediately because there is enough space in the channel.
44- /// s.send(1 ).await;
44+ /// s.send(1usize ).await;
4545///
4646/// task::spawn(async move {
4747/// // This call will have to wait because the channel is full.
@@ -323,7 +323,7 @@ impl<T> fmt::Debug for Sender<T> {
323323/// let (s, r) = channel(100);
324324///
325325/// task::spawn(async move {
326- /// s.send(1 ).await;
326+ /// s.send(1usize ).await;
327327/// task::sleep(Duration::from_secs(1)).await;
328328/// s.send(2).await;
329329/// });
@@ -346,7 +346,7 @@ pub struct Receiver<T> {
346346impl < T > Receiver < T > {
347347 /// Receives a message from the channel.
348348 ///
349- /// If the channel is emtpy and still has senders, this method
349+ /// If the channel is empty and still has senders, this method
350350 /// will wait until a message is sent into it. Once all senders
351351 /// have been dropped it will return `None`.
352352 ///
@@ -361,7 +361,7 @@ impl<T> Receiver<T> {
361361 /// let (s, r) = channel(1);
362362 ///
363363 /// task::spawn(async move {
364- /// s.send(1 ).await;
364+ /// s.send(1usize ).await;
365365 /// s.send(2).await;
366366 /// // Then we drop the sender
367367 /// });
0 commit comments