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

Commit

Permalink
Simplify example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Aug 23, 2019
1 parent 2c2d70f commit d0c483c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@
//!
//! // This function will be called by the application
//! fn print() -> Result<(), core::fmt::Error> {
//! let mut stdout = match hio::hstdout() {
//! Ok(fd) => fd,
//! Err(()) => return Err(core::fmt::Error),
//! };
//! let mut stdout = hio::hstdout().map_err(|_| core::fmt::Error)?;
//!
//! let language = "Rust";
//! let ranking = 1;
Expand Down

0 comments on commit d0c483c

Please sign in to comment.