From 580c7a714a128dea37d2891771dbacb4f31a93cf Mon Sep 17 00:00:00 2001 From: Noritada Kobayashi Date: Thu, 23 Jan 2020 00:33:05 +0900 Subject: [PATCH] Fix typo in example code block (#1971) --- guide/src/reference/js-promises-and-rust-futures.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/src/reference/js-promises-and-rust-futures.md b/guide/src/reference/js-promises-and-rust-futures.md index 72ce692b..4d740bdf 100644 --- a/guide/src/reference/js-promises-and-rust-futures.md +++ b/guide/src/reference/js-promises-and-rust-futures.md @@ -15,7 +15,7 @@ implements the `std::future::Future` trait which allows naturally using it in an ```rust async fn get_from_js() -> Result { - let promise = js_sys::Promise::resolved(&42.into()); + let promise = js_sys::Promise::resolve(&42.into()); let result = wasm_bindgen_futures::JsFuture::from(promise).await?; Ok(result) }