Skip to content

Instantly share code, notes, and snippets.

View theherk's full-sized avatar
🇳🇴

Adam Sherwood theherk

🇳🇴
View GitHub Profile
@theherk
theherk / playground.rs
Created March 2, 2018 01:02 — forked from anonymous/playground.rs
Rust code shared from the playground
use std::io::{Error, ErrorKind};
fn hmm(go: bool) -> Result<String, Error> {
match go {
true => Ok(String::from("good to go")),
_ => Err(Error::new(ErrorKind::Other, "bad")),
}
}
fn gonogo(go: bool) -> Result<String, Error> {