Fix compilation of example in docs

Stray `match` keyword!

Closes #1109
This commit is contained in:
Alex Crichton 2018-12-12 08:20:08 -08:00
parent df09df42d1
commit 53d6e00b70

View File

@ -75,7 +75,7 @@ use wasm_bindgen::prelude::*;
pub fn collect_numbers(some_iterable: &JsValue) -> Result<js_sys::Array, JsValue> {
let nums = js_sys::Array::new();
let iterator = match js_sys::try_iter(some_iterable)?.ok_or_else(|| {
let iterator = js_sys::try_iter(some_iterable)?.ok_or_else(|| {
"need to pass iterable JS values!".into()
})?;