[manual] fix example
@@ -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);
}
