Rollup merge of #93531 - TheColdVoid:patch-1, r=m-ou-se
Fix incorrect panic message in example The panic message when calling the `connect()` should probably be a message about connection failure, not a message about binding address failure.
This commit is contained in:
commit
b836b281a8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue