Skip to content

Commit 5b89c85

Browse files
committed
Small cleanup of RecvFlags::is_end_of_record docs
1 parent 7b8ad3a commit 5b89c85

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/sys/unix.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,13 @@ impl_debug!(
397397
impl RecvFlags {
398398
/// Check if the message terminates a record.
399399
///
400-
/// Not all socket types support the notion of records.
401-
/// For socket types that do support it (such as [`SEQPACKET`][Type::SEQPACKET]),
402-
/// a record is terminated by sending a message with the end-of-record flag set.
400+
/// Not all socket types support the notion of records. For socket types
401+
/// that do support it (such as [`SEQPACKET`]), a record is terminated by
402+
/// sending a message with the end-of-record flag set.
403403
///
404404
/// On Unix this corresponds to the MSG_EOR flag.
405+
///
406+
/// [`SEQPACKET`]: Type::SEQPACKET
405407
pub const fn is_end_of_record(self) -> bool {
406408
self.0 & libc::MSG_EOR != 0
407409
}

0 commit comments

Comments
 (0)