Replace unwrap with ? in TcpListener doc

This commit is contained in:
Daniel Chmielewski 2023-01-31 21:04:49 +00:00
parent f361413cbf
commit 943f833314
No known key found for this signature in database
GPG Key ID: 7C378F4243F0A153

View File

@ -829,7 +829,7 @@ impl TcpListener {
/// }
///
/// fn main() -> std::io::Result<()> {
/// let listener = TcpListener::bind("127.0.0.1:80").unwrap();
/// let listener = TcpListener::bind("127.0.0.1:80")?;
///
/// for stream in listener.incoming() {
/// match stream {