summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-05-09 19:44:39 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-05-09 13:44:38 -0400
commit07886a03cc913a15fa8e90034e80edeb41186c2c (patch)
tree98bb133a232d2eba918bf84de282d1d6e14eb30d
parentd9cdc6788b1ed89d7f3b2daf9da7e4a9f664e424 (diff)
[manual] fix example (#2307)
-rw-r--r--website/manual.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/website/manual.md b/website/manual.md
index cbdaad0f7..01325f8af 100644
--- a/website/manual.md
+++ b/website/manual.md
@@ -409,10 +409,10 @@ async function main() {
if (code === 0) {
const rawOutput = await p.output();
- Deno.stdout.write(rawOutput);
+ await Deno.stdout.write(rawOutput);
} else {
const rawError = await p.stderrOutput();
- const errorString = new TextDecoder().decode(rawError);
+ const errorString = decoder.decode(rawError);
console.log(errorString);
}