From 462d097bf5bc5dfd21180eb6f812057d5c1ec97f Mon Sep 17 00:00:00 2001 From: Larpon Date: Wed, 27 Oct 2021 15:41:22 +0200 Subject: [PATCH] toml: small clarification on utf8_max const (#12320) --- vlib/toml/checker/checker.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/toml/checker/checker.v b/vlib/toml/checker/checker.v index b76fc24f7d..150099e934 100644 --- a/vlib/toml/checker/checker.v +++ b/vlib/toml/checker/checker.v @@ -12,8 +12,8 @@ import encoding.utf8 pub const allowed_basic_escape_chars = [`u`, `U`, `b`, `t`, `n`, `f`, `r`, `"`, `\\`] -// utf8_max is the value of hex2int('10FFFF') -const utf8_max = 1114111 +// utf8_max is the largest inclusive value of the Unicodes scalar value ranges. +const utf8_max = 0x10FFFF // Checker checks a tree of TOML `ast.Value`'s for common errors. pub struct Checker {