Skip to content

Commit

Permalink
docs(shell): fix incorrect output on "awaiting" example (#17152)
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciuspjardim authored Feb 11, 2025
1 parent 02d4534 commit c2edbe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/runtime/shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ By default, `await`ing will return stdout and stderr as `Buffer`s.
```js
import { $ } from "bun";

const { stdout, stderr } = await $`echo "Hello World!"`.quiet();
const { stdout, stderr } = await $`echo "Hello!"`.quiet();

console.log(stdout); // Buffer(6) [ 72, 101, 108, 108, 111, 32 ]
console.log(stdout); // Buffer(7) [ 72, 101, 108, 108, 111, 33, 10 ]
console.log(stderr); // Buffer(0) []
```

Expand Down

0 comments on commit c2edbe8

Please sign in to comment.