From 37aaf4519c07cbcc1dbfb4a3ffd022b5641ba758 Mon Sep 17 00:00:00 2001 From: BadWolfuu Date: Mon, 18 May 2026 14:01:31 +0200 Subject: [PATCH] adding missing documentation to strconv.parse_int and strconv.parse_uint parse_int and parse_uint where missing documentation for the optional parameter `n: ^int` to store the length of the parsed substring --- core/strconv/strconv.odin | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/strconv/strconv.odin b/core/strconv/strconv.odin index 48a75d972..f52e7d133 100644 --- a/core/strconv/strconv.odin +++ b/core/strconv/strconv.odin @@ -342,6 +342,7 @@ Parses a signed integer value from the input string, using the specified base or - base: The base of the number system to use for parsing (default: 0) - If base is 0, it will be inferred based on the prefix in the input string (e.g. '0x' for hexadecimal) - If base is not 0, it will be used for parsing regardless of any prefix in the input string +- n: An optional pointer to an int to store the length of the parsed substring (default: nil) Example: @@ -385,6 +386,7 @@ Parses an unsigned integer value from the input string, using the specified base - base: The base of the number system to use for parsing (default: 0, inferred) - If base is 0, it will be inferred based on the prefix in the input string (e.g. '0x' for hexadecimal) - If base is not 0, it will be used for parsing regardless of any prefix in the input string +- n: An optional pointer to an int to store the length of the parsed substring (default: nil) Example: