mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Fix doc comment: use ? instead of .unwrap()
This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
/// }
|
||||
///
|
||||
/// fn main() -> io::Result<()> {
|
||||
/// let listener = TcpListener::bind("127.0.0.1:80").unwrap();
|
||||
/// let listener = TcpListener::bind("127.0.0.1:80")?;
|
||||
///
|
||||
/// // accept connections and process them serially
|
||||
/// for stream in listener.incoming() {
|
||||
|
||||
Reference in New Issue
Block a user