We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae6f4a9 commit 580c7a7Copy full SHA for 580c7a7
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
15
16
```rust
17
async fn get_from_js() -> Result<JsValue, JsValue> {
18
- let promise = js_sys::Promise::resolved(&42.into());
+ let promise = js_sys::Promise::resolve(&42.into());
19
let result = wasm_bindgen_futures::JsFuture::from(promise).await?;
20
Ok(result)
21
}
0 commit comments