diff --git a/website/manual.md b/website/manual.md index cbdaad0f79..01325f8afc 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); }