Also fix the signature of main in std::sys::unix::ext

This commit is contained in:
Emmanuel Gil Peyrot 2019-11-24 13:56:37 +01:00
parent 3a2da7194c
commit aff79422d8

View file

@ -15,11 +15,13 @@
//! use std::fs::File;
//! use std::os::unix::prelude::*;
//!
//! fn main() {
//! fn main() -> std::io::Result<()> {
//! let f = File::create("foo.txt")?;
//! let fd = f.as_raw_fd();
//!
//! // use fd with native unix bindings
//!
//! Ok(())
//! }
//! ```