diff --git a/tokio/src/io/split.rs b/tokio/src/io/split.rs index 2602929cd..453508eda 100644 --- a/tokio/src/io/split.rs +++ b/tokio/src/io/split.rs @@ -79,8 +79,7 @@ impl ReadHalf { /// /// If this `ReadHalf` and the given `WriteHalf` do not originate from the /// same `split` operation this method will panic. - /// This can be checked ahead of time by comparing the stream ID - /// of the two halves. + /// This can be checked ahead of time by calling [`is_pair_of()`](Self::is_pair_of). #[track_caller] pub fn unsplit(self, wr: WriteHalf) -> T where