typo (extra trailing colon ':') in asynchronous-tests.md, ln 22, causing compilation error for code snippet (#2198)

This commit is contained in:
Johnny Dong 2020-06-12 00:10:33 +10:00 committed by GitHub
parent 1edd43a224
commit 64e53a5502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
```