From ad9f6b12e2ba2c6572a7af4feabf706c8d806a9f Mon Sep 17 00:00:00 2001 From: Inseob Kim Date: Fri, 29 Jun 2018 18:07:00 +0900 Subject: [PATCH] Fix misleading comments Bug: N/A Test: N/A Change-Id: I714a0f523eb803cb619acaddff4f769622cfc8b6 --- base/include/android-base/parseint.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/base/include/android-base/parseint.h b/base/include/android-base/parseint.h index b0fc7c3f3..933d877fb 100644 --- a/base/include/android-base/parseint.h +++ b/base/include/android-base/parseint.h @@ -26,9 +26,9 @@ namespace android { namespace base { -// Parses the unsigned decimal integer in the string 's' and sets 'out' to -// that value. Optionally allows the caller to define a 'max' beyond which -// otherwise valid values will be rejected. Returns boolean success; 'out' +// Parses the unsigned decimal or hexadecimal integer in the string 's' and sets +// 'out' to that value. Optionally allows the caller to define a 'max' beyond +// which otherwise valid values will be rejected. Returns boolean success; 'out' // is untouched if parsing fails. template bool ParseUint(const char* s, T* out, T max = std::numeric_limits::max(), @@ -71,8 +71,8 @@ bool ParseByteCount(const std::string& s, T* out, T max = std::numeric_limits return ParseByteCount(s.c_str(), out, max); } -// Parses the signed decimal integer in the string 's' and sets 'out' to -// that value. Optionally allows the caller to define a 'min' and 'max +// Parses the signed decimal or hexadecimal integer in the string 's' and sets +// 'out' to that value. Optionally allows the caller to define a 'min' and 'max' // beyond which otherwise valid values will be rejected. Returns boolean // success; 'out' is untouched if parsing fails. template