From 125a185749533375a52f5be6c16cef42557efa03 Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Fri, 19 Apr 2024 22:21:31 -0700 Subject: [PATCH] io: fix obsolete reference in `ReadHalf::unsplit()` documentation (#6498) --- tokio/src/io/split.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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