diff options
author | KNnut <9387720+KNnut@users.noreply.github.com> | 2020-09-26 22:14:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 10:14:56 -0400 |
commit | e0d4696a7201301dfa23e108b6e73d016e3f5e63 (patch) | |
tree | 8dbd307e10eb09bbd572f51c604dd0f981654f30 | |
parent | ab96619cd6d2cdfde531db3432854166a8dbed5d (diff) |
Fix typos (#7687)
-rw-r--r-- | std/async/README.md | 8 | ||||
-rw-r--r-- | std/signal/README.md | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/std/async/README.md b/std/async/README.md index 3470c9c72..ac7938e18 100644 --- a/std/async/README.md +++ b/std/async/README.md @@ -11,7 +11,7 @@ The following functions and class are exposed in `mod.ts` Creates a Promise with the `reject` and `resolve` functions. ```typescript -import { deferred } from "https://deno.land.std/async/mod.ts"; +import { deferred } from "https://deno.land/std/async/mod.ts"; const p = deferred<number>(); // ... @@ -23,7 +23,7 @@ p.resolve(42); Resolve a Promise after a given amount of milliseconds ```typescript -import { delay } from "https://deno.land.std/async/mod.ts"; +import { delay } from "https://deno.land/std/async/mod.ts"; // ... const delayedPromise = delay(100); @@ -41,7 +41,7 @@ yielded from the iterator) does not matter. If there is any result, it is discarded. ```typescript -import { MuxAsyncIterator } from "https://deno.land.std/async/mod.ts"; +import { MuxAsyncIterator } from "https://deno.land/std/async/mod.ts"; async function* gen123(): AsyncIterableIterator<number> { yield 1; @@ -71,7 +71,7 @@ transforms are done concurrently, with a max concurrency defined by the poolLimit. ```typescript -import { pooledMap } from "https://deno.land.std/async/mod.ts"; +import { pooledMap } from "https://deno.land/std/async/mod.ts"; const results = pooledMap( 2, diff --git a/std/signal/README.md b/std/signal/README.md index f58c742b9..9684faba8 100644 --- a/std/signal/README.md +++ b/std/signal/README.md @@ -12,7 +12,7 @@ Generates an AsyncIterable which can be awaited on for one or more signals. `dispose()` can be called when you are finished waiting on the events. ```typescript -import { signal } from "https://deno.land.std/signal/mod.ts"; +import { signal } from "https://deno.land/std/signal/mod.ts"; const sig = signal(Deno.Signal.SIGUSR1, Deno.Signal.SIGINT); setTimeout(() => {}, 5000); // Prevents exiting immediately @@ -29,7 +29,7 @@ sig.dispose(); Registers a callback function to be called on triggering of a signal event. ```typescript -import { onSignal } from "https://deno.land.std/signal/mod.ts"; +import { onSignal } from "https://deno.land/std/signal/mod.ts"; const handle = onSignal(Deno.Signal.SIGINT, () => { // ... |