mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Replace unwrap with ? in TcpListener doc
This commit is contained in:
parent
f361413cbf
commit
943f833314
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user