Fix incorrect panic message in example
This commit is contained in:
parent
745e926487
commit
76aa92906b
@ -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");
|
||||
/// ```
|
||||
|
Loading…
x
Reference in New Issue
Block a user