diff options
| author | Yoshiya Hinosawa <stibium121@gmail.com> | 2020-03-15 23:30:11 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-15 15:30:11 +0100 |
| commit | ec3f44581bf4312cbbe36b71daca7f0474177cf3 (patch) | |
| tree | 544ae9b6c004a0ef6d19a5a359913133ae32aae5 | |
| parent | 6471d4cfabf27c0f5e7b340568aa88712d270541 (diff) | |
docs: fix Deno.compile examples in manual.md (#4380)
| -rw-r--r-- | std/manual.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/manual.md b/std/manual.md index f4f2135dc..dc326507f 100644 --- a/std/manual.md +++ b/std/manual.md @@ -673,7 +673,7 @@ TypeScript code that is destined for the browser, you would want to use the TypeScript `"dom"` library: ```ts -const [errors, emitted] = Deno.compile( +const [errors, emitted] = await Deno.compile( "main.ts", { "main.ts": `document.getElementById("foo");\n` @@ -713,7 +713,7 @@ So to add the Deno namespace to a compilation, you would include the `deno.ns` lib in the array. For example: ```ts -const [errors, emitted] = Deno.compile( +const [errors, emitted] = await Deno.compile( "main.ts", { "main.ts": `document.getElementById("foo");\n` @@ -744,7 +744,7 @@ document.getElementById("foo"); It would compiler without errors like this: ```ts -const [errors, emitted] = Deno.compile("./main.ts", undefined, { +const [errors, emitted] = await Deno.compile("./main.ts", undefined, { lib: ["esnext"] }); ``` |
