summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorInseob Kim2018-06-29 04:07:00 -0500
committerInseob Kim2018-06-29 04:09:55 -0500
commitad9f6b12e2ba2c6572a7af4feabf706c8d806a9f (patch)
tree2a50c00879f674165368429dafcdb03040324138 /base
parentf9b879fd054b50e1db9eeb7466c1524cb23d1e33 (diff)
downloadplatform-system-core-ad9f6b12e2ba2c6572a7af4feabf706c8d806a9f.tar.gz
platform-system-core-ad9f6b12e2ba2c6572a7af4feabf706c8d806a9f.tar.xz
platform-system-core-ad9f6b12e2ba2c6572a7af4feabf706c8d806a9f.zip
Fix misleading comments
Bug: N/A Test: N/A Change-Id: I714a0f523eb803cb619acaddff4f769622cfc8b6
Diffstat (limited to 'base')
-rw-r--r--base/include/android-base/parseint.h10
1 files 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 @@
26namespace android { 26namespace android {
27namespace base { 27namespace base {
28 28
29// Parses the unsigned decimal integer in the string 's' and sets 'out' to 29// Parses the unsigned decimal or hexadecimal integer in the string 's' and sets
30// that value. Optionally allows the caller to define a 'max' beyond which 30// 'out' to that value. Optionally allows the caller to define a 'max' beyond
31// otherwise valid values will be rejected. Returns boolean success; 'out' 31// which otherwise valid values will be rejected. Returns boolean success; 'out'
32// is untouched if parsing fails. 32// is untouched if parsing fails.
33template <typename T> 33template <typename T>
34bool ParseUint(const char* s, T* out, T max = std::numeric_limits<T>::max(), 34bool ParseUint(const char* s, T* out, T max = std::numeric_limits<T>::max(),
@@ -71,8 +71,8 @@ bool ParseByteCount(const std::string& s, T* out, T max = std::numeric_limits<T>
71 return ParseByteCount(s.c_str(), out, max); 71 return ParseByteCount(s.c_str(), out, max);
72} 72}
73 73
74// Parses the signed decimal integer in the string 's' and sets 'out' to 74// Parses the signed decimal or hexadecimal integer in the string 's' and sets
75// that value. Optionally allows the caller to define a 'min' and 'max 75// 'out' to that value. Optionally allows the caller to define a 'min' and 'max'
76// beyond which otherwise valid values will be rejected. Returns boolean 76// beyond which otherwise valid values will be rejected. Returns boolean
77// success; 'out' is untouched if parsing fails. 77// success; 'out' is untouched if parsing fails.
78template <typename T> 78template <typename T>