From f9c186a400c3bf6d090f5e405633dee9d1b1030f Mon Sep 17 00:00:00 2001 From: lapingenieur Date: Tue, 11 Apr 2023 12:37:14 +0200 Subject: [PATCH] builtin: correct a small documentation mistake (#17935) --- vlib/builtin/string.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/builtin/string.v b/vlib/builtin/string.v index de28aa45d3..75543bff68 100644 --- a/vlib/builtin/string.v +++ b/vlib/builtin/string.v @@ -633,9 +633,9 @@ pub fn (s string) u64() u64 { // parse_uint is like `parse_int` but for unsigned numbers // -// This method directly exposes the `parse_int` function from `strconv` +// This method directly exposes the `parse_uint` function from `strconv` // as a method on `string`. For more advanced features, -// consider calling `strconv.common_parse_int` directly. +// consider calling `strconv.common_parse_uint` directly. [inline] pub fn (s string) parse_uint(_base int, _bit_size int) !u64 { return strconv.parse_uint(s, _base, _bit_size) @@ -654,9 +654,9 @@ pub fn (s string) parse_uint(_base int, _bit_size int) !u64 { // correspond to int, int8, int16, int32, and int64. // If bitSize is below 0 or above 64, an error is returned. // -// This method directly exposes the `parse_uint` function from `strconv` +// This method directly exposes the `parse_int` function from `strconv` // as a method on `string`. For more advanced features, -// consider calling `strconv.common_parse_uint` directly. +// consider calling `strconv.common_parse_int` directly. [inline] pub fn (s string) parse_int(_base int, _bit_size int) !i64 { return strconv.parse_int(s, _base, _bit_size)