Skip to content

Commit

Permalink
Also fix the signature of main in std::sys::unix::ext
Browse files Browse the repository at this point in the history
  • Loading branch information
linkmauve committed Nov 24, 2019
1 parent 3a2da71 commit aff7942
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libstd/sys/unix/ext/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
//! }
//! ```
Expand Down

0 comments on commit aff7942

Please sign in to comment.