From 76aa92906bb60adc36ea79393702b9585df6e9ed Mon Sep 17 00:00:00 2001 From: TheVoid <593767573@qq.com> Date: Tue, 1 Feb 2022 10:19:08 +0800 Subject: [PATCH] Fix incorrect panic message in example --- library/std/src/net/tcp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/net/tcp.rs b/library/std/src/net/tcp.rs index 1ba54d892e3..cc4e4fd4fdc 100644 --- a/library/std/src/net/tcp.rs +++ b/library/std/src/net/tcp.rs @@ -405,7 +405,7 @@ impl TcpStream { /// use std::net::TcpStream; /// /// let stream = TcpStream::connect("127.0.0.1:8000") - /// .expect("couldn't bind to address"); + /// .expect("Couldn't connect to the server..."); /// let mut buf = [0; 10]; /// let len = stream.peek(&mut buf).expect("peek failed"); /// ```