Skip to content

Commit 8f158bc

Browse files
committed
Replace .unwrap() with ? in std::os::unix::net
1 parent 7d761fe commit 8f158bc

File tree

2 files changed

+237
-149
lines changed

2 files changed

+237
-149
lines changed

src/libstd/sys/unix/ext/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//! use std::os::unix::prelude::*;
1717
//!
1818
//! fn main() {
19-
//! let f = File::create("foo.txt").unwrap();
19+
//! let f = File::create("foo.txt")?;
2020
//! let fd = f.as_raw_fd();
2121
//!
2222
//! // use fd with native unix bindings

0 commit comments

Comments
 (0)