Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit d0c483c

Browse files
committed
Simplify example code.
1 parent 2c2d70f commit d0c483c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@
3737
//!
3838
//! // This function will be called by the application
3939
//! fn print() -> Result<(), core::fmt::Error> {
40-
//! let mut stdout = match hio::hstdout() {
41-
//! Ok(fd) => fd,
42-
//! Err(()) => return Err(core::fmt::Error),
43-
//! };
40+
//! let mut stdout = hio::hstdout().map_err(|_| core::fmt::Error)?;
4441
//!
4542
//! let language = "Rust";
4643
//! let ranking = 1;

0 commit comments

Comments
 (0)