diff options
| author | TheVoid <593767573@qq.com> | 2022-02-01 10:19:08 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-01 10:19:08 +0800 |
| commit | 76aa92906bb60adc36ea79393702b9585df6e9ed (patch) | |
| tree | e0bd866e4ef02305b2c240288a0503d5560db45b /library/std/src/net/tcp.rs | |
| parent | 745e9264873ab001a189f739446c86c509e6dc3d (diff) | |
| download | rust-76aa92906bb60adc36ea79393702b9585df6e9ed.tar.gz rust-76aa92906bb60adc36ea79393702b9585df6e9ed.zip | |
Fix incorrect panic message in example
Diffstat (limited to 'library/std/src/net/tcp.rs')
| -rw-r--r-- | library/std/src/net/tcp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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"); /// ``` |
