Also fix the signature of main in std::sys::unix::ext
This commit is contained in:
parent
3a2da7194c
commit
aff79422d8
1 changed files with 3 additions and 1 deletions
|
|
@ -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(())
|
||||
//! }
|
||||
//! ```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue