Skip to content

Instantly share code, notes, and snippets.

@chadaustin
Created June 11, 2016 00:32
Show Gist options
  • Select an option

  • Save chadaustin/13967298d46bd61033ee3298b97eab59 to your computer and use it in GitHub Desktop.

Select an option

Save chadaustin/13967298d46bd61033ee3298b97eab59 to your computer and use it in GitHub Desktop.
let compiler = newCompiler(result => {
match result {
Ok(res) => {
outputTextArea.classList.remove("has-errors")
outputTextArea.value = res
}
Err(err) => {
outputTextArea.classList.add("has-errors")
outputTextArea.value = err
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment