From 64018e6f140781e9fcde8eeba225b04491b06d63 Mon Sep 17 00:00:00 2001 From: Quix <61027486+QuixoticValentine@users.noreply.github.com> Date: Mon, 15 Feb 2021 10:52:00 -0500 Subject: [PATCH] encoding.utf8: fix 'length' typo in two spots (#8746) --- 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 5479d26627..c8806a6b87 100644 --- a/vlib/encoding/utf8/utf8_util.v +++ b/vlib/encoding/utf8/utf8_util.v @@ -17,7 +17,7 @@ Utility functions */ -// len return the leght as number of unicode chars from a string +// len return the length as number of unicode chars from a string pub fn len(s string) int { mut count := 0 mut index := 0 @@ -33,7 +33,7 @@ pub fn len(s string) int { return count } -// u_len return the leght as number of unicode chars from a ustring +// u_len return the length as number of unicode chars from a ustring pub fn u_len(s ustring) int { return len(s.s) }