This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 0874e865c chore(parse_util): fix comment typos and clarify base
parameter range (#3303)
0874e865c is described below
commit 0874e865c6a66a65eae2da70d0b893399b522215
Author: Zhangjian He <[email protected]>
AuthorDate: Mon Dec 22 11:36:04 2025 +0800
chore(parse_util): fix comment typos and clarify base parameter range
(#3303)
---
src/common/parse_util.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/parse_util.h b/src/common/parse_util.h
index 201f9415a..4c5ea8507 100644
--- a/src/common/parse_util.h
+++ b/src/common/parse_util.h
@@ -29,12 +29,12 @@
template <typename T>
using ParseResultAndPos = std::tuple<T, const char *>;
-// TryParseInt parses a string to a integer,
+// TryParseInt parses a string to an integer,
// if non-integer characters is encountered, it stop parsing and
// return the result integer and the current string position.
// e.g. TryParseInt("100MB") -> {100, "MB"}
// if no integer can be parsed or out of type range, an error will be returned
-// base can be in {0, 2, ..., 36}, refer to strto* in standard c for more
details
+// base can be in {2, ..., 36}
template <typename T = long long, std::enable_if_t<std::is_integral_v<T>, int>
= 0> // NOLINT
StatusOr<ParseResultAndPos<T>> TryParseInt(std::string_view v, int base = 10) {
T res = 0;