mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
io: fix obsolete reference in ReadHalf::unsplit()
documentation (#6498)
This commit is contained in:
parent
f3bfed30eb
commit
125a185749
@ -79,8 +79,7 @@ impl<T> ReadHalf<T> {
|
|||||||
///
|
///
|
||||||
/// If this `ReadHalf` and the given `WriteHalf` do not originate from the
|
/// If this `ReadHalf` and the given `WriteHalf` do not originate from the
|
||||||
/// same `split` operation this method will panic.
|
/// same `split` operation this method will panic.
|
||||||
/// This can be checked ahead of time by comparing the stream ID
|
/// This can be checked ahead of time by calling [`is_pair_of()`](Self::is_pair_of).
|
||||||
/// of the two halves.
|
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
pub fn unsplit(self, wr: WriteHalf<T>) -> T
|
pub fn unsplit(self, wr: WriteHalf<T>) -> T
|
||||||
where
|
where
|
||||||
|
Loading…
x
Reference in New Issue
Block a user