Skip to content

Commit d9051b2

Browse files
committed
docs: fix comments
1 parent 834f153 commit d9051b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utils/number_utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const FLOAT_BYTES = new Uint8Array(FLOAT.buffer, 0, 8);
33

44
FLOAT[0] = -1;
55
// Little endian [0, 0, 0, 0, 0, 0, 240, 191]
6-
// Big endian [240, 191, 0, 0, 0, 0, 0, 0]
6+
// Big endian [191, 240, 0, 0, 0, 0, 0, 0]
77
const isBigEndian = FLOAT_BYTES[7] === 0;
88

99
/**

test/node/utils/number_utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const FLOAT_BYTES = new Uint8Array(FLOAT.buffer, 0, 8);
66

77
FLOAT[0] = -1;
88
// Little endian [0, 0, 0, 0, 0, 0, 240, 191]
9-
// Big endian [240, 191, 0, 0, 0, 0, 0, 0]
9+
// Big endian [191, 240, 0, 0, 0, 0, 0, 0]
1010
const isBigEndian = FLOAT_BYTES[7] === 0;
1111

1212
describe('NumberUtils', () => {

0 commit comments

Comments
 (0)