Skip to content

Commit

Permalink
docs: Update binary-data.md (#8635)
Browse files Browse the repository at this point in the history
Binary notation ("0b") is appropriate instead of hexadecimal notation ("0x").

Sorry for the omission of the correction in this [PR](#8619).
  • Loading branch information
fneco authored Feb 2, 2024
1 parent 4959c7d commit 625b172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/binary-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Below we create a new `DataView` and set the first byte to 5.

```ts
const buf = new ArrayBuffer(4);
// [0x0, 0x0, 0x0, 0x0]
// [0b00000000, 0b00000000, 0b00000000, 0b00000000]

const dv = new DataView(buf);
dv.setUint8(0, 3); // write value 3 at byte offset 0
Expand Down

0 comments on commit 625b172

Please sign in to comment.