diff options
author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-05-09 19:44:39 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-05-09 13:44:38 -0400 |
commit | 07886a03cc913a15fa8e90034e80edeb41186c2c (patch) | |
tree | 98bb133a232d2eba918bf84de282d1d6e14eb30d | |
parent | d9cdc6788b1ed89d7f3b2daf9da7e4a9f664e424 (diff) |
[manual] fix example (#2307)
-rw-r--r-- | website/manual.md | 4 |
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); } |