summaryrefslogtreecommitdiff
path: root/encoding/hex.ts
diff options
context:
space:
mode:
Diffstat (limited to 'encoding/hex.ts')
-rw-r--r--encoding/hex.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding/hex.ts b/encoding/hex.ts
index d2e499cc7..de3d76869 100644
--- a/encoding/hex.ts
+++ b/encoding/hex.ts
@@ -85,7 +85,7 @@ export function decode(
dst: Uint8Array,
src: Uint8Array
): [number, Error | void] {
- var i = 0;
+ let i = 0;
for (; i < Math.floor(src.length / 2); i++) {
const [a, aOK] = fromHexChar(src[i * 2]);
if (!aOK) {