mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
BREAKING(encoding): rename MaxUInt64
to MaxUint64
(#4897)
This commit is contained in:
parent
f8f5444478
commit
088458f860
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user