mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-15 09:40:52 +00:00
typo (extra trailing colon ':') in asynchronous-tests.md, ln 22, causing compilation error for code snippet (#2198)
This commit is contained in:
parent
1edd43a224
commit
64e53a5502
@ -19,7 +19,7 @@ async fn my_async_test() {
|
||||
let promise = js_sys::Promise::resolve(&JsValue::from(42));
|
||||
|
||||
// Convert that promise into a future and make the test wait on it.
|
||||
let x = JsFuture::from(promise).await.unwrap();:
|
||||
let x = JsFuture::from(promise).await.unwrap();
|
||||
assert_eq!(x, 42);
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user