diff options
-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); } |