Fix incorrect panic message in example

This commit is contained in:
TheVoid 2022-02-01 10:19:08 +08:00 committed by GitHub
parent 745e926487
commit 76aa92906b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
/// ```