diff options
Diffstat (limited to 'tokio/src/io/split.rs')
-rw-r--r-- | tokio/src/io/split.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tokio/src/io/split.rs b/tokio/src/io/split.rs index 2572a786..134b937a 100644 --- a/tokio/src/io/split.rs +++ b/tokio/src/io/split.rs @@ -27,7 +27,7 @@ cfg_io_util! { inner: Arc<Inner<T>>, } - /// Split a single value implementing `AsyncRead + AsyncWrite` into separate + /// Splits a single value implementing `AsyncRead + AsyncWrite` into separate /// `AsyncRead` and `AsyncWrite` handles. /// /// To restore this read/write object from its `ReadHalf` and @@ -61,13 +61,13 @@ struct Guard<'a, T> { } impl<T> ReadHalf<T> { - /// Check if this `ReadHalf` and some `WriteHalf` were split from the same + /// Checks if this `ReadHalf` and some `WriteHalf` were split from the same /// stream. pub fn is_pair_of(&self, other: &WriteHalf<T>) -> bool { other.is_pair_of(&self) } - /// Reunite with a previously split `WriteHalf`. + /// Reunites with a previously split `WriteHalf`. /// /// # Panics /// @@ -81,7 +81,7 @@ impl<T> ReadHalf<T> { let inner = Arc::try_unwrap(self.inner) .ok() - .expect("Arc::try_unwrap failed"); + .expect("`Arc::try_unwrap` failed"); inner.stream.into_inner() } else { |