From 07886a03cc913a15fa8e90034e80edeb41186c2c Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Thu, 9 May 2019 19:44:39 +0200 Subject: [manual] fix example (#2307) --- website/manual.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'website') 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); } -- cgit v1.2.3