@@ -109,7 +109,7 @@ struct BoundedSenderInner<T> {
109109 // unblocked.
110110 sender_task : Arc < Mutex < SenderTask > > ,
111111
112- // True if the sender might be blocked. This is an optimization to avoid
112+ // `true` if the sender might be blocked. This is an optimization to avoid
113113 // having to lock the mutex most of the time.
114114 maybe_parked : bool ,
115115}
@@ -189,15 +189,15 @@ impl fmt::Display for SendError {
189189impl std:: error:: Error for SendError { }
190190
191191impl SendError {
192- /// Returns true if this error is a result of the channel being full.
192+ /// Returns ` true` if this error is a result of the channel being full.
193193 pub fn is_full ( & self ) -> bool {
194194 match self . kind {
195195 SendErrorKind :: Full => true ,
196196 _ => false ,
197197 }
198198 }
199199
200- /// Returns true if this error is a result of the receiver being dropped.
200+ /// Returns ` true` if this error is a result of the receiver being dropped.
201201 pub fn is_disconnected ( & self ) -> bool {
202202 match self . kind {
203203 SendErrorKind :: Disconnected => true ,
@@ -227,12 +227,12 @@ impl<T> fmt::Display for TrySendError<T> {
227227impl < T : core:: any:: Any > std:: error:: Error for TrySendError < T > { }
228228
229229impl < T > TrySendError < T > {
230- /// Returns true if this error is a result of the channel being full.
230+ /// Returns ` true` if this error is a result of the channel being full.
231231 pub fn is_full ( & self ) -> bool {
232232 self . err . is_full ( )
233233 }
234234
235- /// Returns true if this error is a result of the receiver being dropped.
235+ /// Returns ` true` if this error is a result of the receiver being dropped.
236236 pub fn is_disconnected ( & self ) -> bool {
237237 self . err . is_disconnected ( )
238238 }
@@ -536,7 +536,7 @@ impl<T> BoundedSenderInner<T> {
536536 // This operation will also atomically determine if the sender task
537537 // should be parked.
538538 //
539- // None is returned in the case that the channel has been closed by the
539+ // ` None` is returned in the case that the channel has been closed by the
540540 // receiver. This happens when `Receiver::close` is called or the
541541 // receiver is dropped.
542542 let park_self = match self . inc_num_messages ( ) {
@@ -997,7 +997,7 @@ impl<T> Receiver<T> {
997997 /// no longer empty.
998998 ///
999999 /// This function will panic if called after `try_next` or `poll_next` has
1000- /// returned None.
1000+ /// returned ` None` .
10011001 pub fn try_next ( & mut self ) -> Result < Option < T > , TryRecvError > {
10021002 match self . next_message ( ) {
10031003 Poll :: Ready ( msg) => {
@@ -1127,7 +1127,7 @@ impl<T> UnboundedReceiver<T> {
11271127 /// no longer empty.
11281128 ///
11291129 /// This function will panic if called after `try_next` or `poll_next` has
1130- /// returned None.
1130+ /// returned ` None` .
11311131 pub fn try_next ( & mut self ) -> Result < Option < T > , TryRecvError > {
11321132 match self . next_message ( ) {
11331133 Poll :: Ready ( msg) => {
0 commit comments