From 9be5f3f9ff5b3d0b4f55093d2f86bdc2503a7603 Mon Sep 17 00:00:00 2001 From: Blake Smith Date: Mon, 4 Mar 2019 16:17:08 -0600 Subject: [PATCH] Fix TcpStream::try_clone error message (#946) --- tokio-tcp/src/stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-tcp/src/stream.rs b/tokio-tcp/src/stream.rs index 0ee2faaf4..b975d37dd 100644 --- a/tokio-tcp/src/stream.rs +++ b/tokio-tcp/src/stream.rs @@ -785,7 +785,7 @@ impl TcpStream { // Rationale for deprecation: // - https://github.com/tokio-rs/tokio/pull/824 // - https://github.com/tokio-rs/tokio/issues/774#issuecomment-451059317 - let msg = "`TcpStream::split()` is deprecated because it doesn't work as intended"; + let msg = "`TcpStream::try_clone()` is deprecated because it doesn't work as intended"; Err(io::Error::new(io::ErrorKind::Other, msg)) } }