BREAKING(encoding): rename MaxUInt64 to MaxUint64 (#4897)

This commit is contained in:
Yoshiya Hinosawa 2024-05-30 17:54:18 +09:00 committed by GitHub
parent f8f5444478
commit 088458f860
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@
* The maximum value of an unsigned 64-bit integer.
* Equivalent to `2n**64n - 1n`
*/
export const MaxUInt64 = 18446744073709551615n;
export const MaxUint64 = 18446744073709551615n;
/**
* The maximum length, in bytes, of a VarInt encoded 64-bit integer.

View File

@ -7,7 +7,7 @@ import {
decodeVarint,
decodeVarint32,
encodeVarint,
MaxUInt64,
MaxUint64,
MaxVarIntLen64,
} from "./varint.ts";
@ -154,7 +154,7 @@ Deno.test("encodeDecode() handles BigInt", () => {
) {
encodeDecode(i);
}
for (let i = 0x7n; i < MaxUInt64; i <<= 1n) {
for (let i = 0x7n; i < MaxUint64; i <<= 1n) {
encodeDecode(i);
}
});