Skip to content

Commit 580c7a7

Browse files
noritadaalexcrichton
authored andcommitted
Fix typo in example code block (#1971)
1 parent ae6f4a9 commit 580c7a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guide/src/reference/js-promises-and-rust-futures.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ implements the `std::future::Future` trait which allows naturally using it in an
1515

1616
```rust
1717
async fn get_from_js() -> Result<JsValue, JsValue> {
18-
let promise = js_sys::Promise::resolved(&42.into());
18+
let promise = js_sys::Promise::resolve(&42.into());
1919
let result = wasm_bindgen_futures::JsFuture::from(promise).await?;
2020
Ok(result)
2121
}

0 commit comments

Comments
 (0)