@@ -109,7 +109,7 @@ struct BoundedSenderInner<T> {
109
109
// unblocked.
110
110
sender_task : Arc < Mutex < SenderTask > > ,
111
111
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
113
113
// having to lock the mutex most of the time.
114
114
maybe_parked : bool ,
115
115
}
@@ -189,15 +189,15 @@ impl fmt::Display for SendError {
189
189
impl std:: error:: Error for SendError { }
190
190
191
191
impl 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.
193
193
pub fn is_full ( & self ) -> bool {
194
194
match self . kind {
195
195
SendErrorKind :: Full => true ,
196
196
_ => false ,
197
197
}
198
198
}
199
199
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.
201
201
pub fn is_disconnected ( & self ) -> bool {
202
202
match self . kind {
203
203
SendErrorKind :: Disconnected => true ,
@@ -227,12 +227,12 @@ impl<T> fmt::Display for TrySendError<T> {
227
227
impl < T : core:: any:: Any > std:: error:: Error for TrySendError < T > { }
228
228
229
229
impl < 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.
231
231
pub fn is_full ( & self ) -> bool {
232
232
self . err . is_full ( )
233
233
}
234
234
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.
236
236
pub fn is_disconnected ( & self ) -> bool {
237
237
self . err . is_disconnected ( )
238
238
}
@@ -536,7 +536,7 @@ impl<T> BoundedSenderInner<T> {
536
536
// This operation will also atomically determine if the sender task
537
537
// should be parked.
538
538
//
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
540
540
// receiver. This happens when `Receiver::close` is called or the
541
541
// receiver is dropped.
542
542
let park_self = match self . inc_num_messages ( ) {
@@ -997,7 +997,7 @@ impl<T> Receiver<T> {
997
997
/// no longer empty.
998
998
///
999
999
/// This function will panic if called after `try_next` or `poll_next` has
1000
- /// returned None.
1000
+ /// returned ` None` .
1001
1001
pub fn try_next ( & mut self ) -> Result < Option < T > , TryRecvError > {
1002
1002
match self . next_message ( ) {
1003
1003
Poll :: Ready ( msg) => {
@@ -1127,7 +1127,7 @@ impl<T> UnboundedReceiver<T> {
1127
1127
/// no longer empty.
1128
1128
///
1129
1129
/// This function will panic if called after `try_next` or `poll_next` has
1130
- /// returned None.
1130
+ /// returned ` None` .
1131
1131
pub fn try_next ( & mut self ) -> Result < Option < T > , TryRecvError > {
1132
1132
match self . next_message ( ) {
1133
1133
Poll :: Ready ( msg) => {
0 commit comments