Rollup merge of #52455 - felixrabe:patch-1, r=estebank
Fix doc comment: use `?` instead of `.unwrap()`
This commit is contained in:
commit
d94a279538
@ -81,7 +81,7 @@ pub struct TcpStream(net_imp::TcpStream);
|
||||
/// }
|
||||
///
|
||||
/// 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() {
|
||||
|
Loading…
Reference in New Issue
Block a user