Fix doc comment: use ? instead of .unwrap()

This commit is contained in:
Felix Rabe
2018-07-17 14:18:58 +02:00
committed by GitHub
parent 2ddc0cbd56
commit a65d535c5f
+1 -1
View File
@@ -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() {