Skip to content

Commit 472c16c

Browse files
committed
lib: fix typo idenity => identity
1 parent f4c50a8 commit 472c16c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/encoding/single-byte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const h = (x) => it(ArrayPrototypeFill(new Array(x), r));
4141
/* eslint-disable @stylistic/js/max-len */
4242

4343
// Index tables from https://encoding.spec.whatwg.org/#legacy-single-byte-encodings
44-
// Each table in the spec lists only mapping from byte 0x80 onwards, as below that they are all ASCII and mapped as idenity
44+
// Each table in the spec lists only mapping from byte 0x80 onwards, as below that they are all ASCII and mapped as identity
4545
// Here, 0xfffd (replacement charcode) designates a hole (unmapped offset), as not all encodings map all offsets
4646
// All other numbers are deltas from the last seen mapped value, starting with 0x7f (127, highest ASCII)
4747
// Thus, [0x80, 0x81, , 0x83] is stored as [1, 1, r, 2]

0 commit comments

Comments
 (0)