Skip to content

Commit aff7942

Browse files
committed
Also fix the signature of main in std::sys::unix::ext
1 parent 3a2da71 commit aff7942

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
//! use std::fs::File;
1616
//! use std::os::unix::prelude::*;
1717
//!
18-
//! fn main() {
18+
//! fn main() -> std::io::Result<()> {
1919
//! let f = File::create("foo.txt")?;
2020
//! let fd = f.as_raw_fd();
2121
//!
2222
//! // use fd with native unix bindings
23+
//!
24+
//! Ok(())
2325
//! }
2426
//! ```
2527

0 commit comments

Comments
 (0)