From 9d289c285999ec116880ca3159885538a25b830a Mon Sep 17 00:00:00 2001 From: JalonSolov Date: Sat, 4 Nov 2023 14:39:02 -0400 Subject: [PATCH] cleaner comments --- vlib/encoding/utf8/utf8_util.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/encoding/utf8/utf8_util.v b/vlib/encoding/utf8/utf8_util.v index 5f9885b52bdebd..b40328d89f82a4 100644 --- a/vlib/encoding/utf8/utf8_util.v +++ b/vlib/encoding/utf8/utf8_util.v @@ -429,13 +429,13 @@ fn up_low(s string, upper_flag bool) string { if ch_len == 1 { if upper_flag == true { unsafe { - // Subtract 0x20 (ASCII space char) from ASCII lowercase to convert to uppercase. + // Subtract 0x20 from ASCII lowercase to convert to uppercase. c := s[index] str_res[index] = if c >= 0x61 && c <= 0x7a { c - 0x20 } else { c } } } else { unsafe { - // Add 0x20 (ASCII space char) to ASCII uppercase to convert to lowercase. + // Add 0x20 to ASCII uppercase to convert to lowercase. c := s[index] str_res[index] = if c >= 0x41 && c <= 0x5a { c + 0x20 } else { c } }