From 7af7b4df5e7095668962147848bfa91908610918 Mon Sep 17 00:00:00 2001 From: Michael Rowley Date: Thu, 30 Dec 2021 14:05:56 +0000 Subject: [PATCH] Adjusted strToIpv6 example #2 --- src/core/lib/IP.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/lib/IP.mjs b/src/core/lib/IP.mjs index 2e5a7870..b2473d2f 100644 --- a/src/core/lib/IP.mjs +++ b/src/core/lib/IP.mjs @@ -346,8 +346,8 @@ export function ipv4ToStr(ipInt) { * // returns [65280, 0, 0, 0, 0, 0, 4369, 8738] * strToIpv6("ff00::1111:2222"); * - * // returns 126946n - * strToIpv6("1:f000", false); + * // returns 3.3895313892515355e+38 + * strToIpv6("ff00::1111:2222", false); */ export function strToIpv6(ipStr, retArr=true) { if (retArr === false) {