Skip to content

Commit

Permalink
io: fix obsolete reference in ReadHalf::unsplit() documentation (#6498
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kpreid authored Apr 20, 2024
1 parent f3bfed3 commit 125a185
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tokio/src/io/split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ impl<T> ReadHalf<T> {
///
/// 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>) -> T
where
Expand Down

0 comments on commit 125a185

Please sign in to comment.