Make const the 'hex' argument of is_positive_num()

Always good to get in the habit of clearly marking arguments you won't
mutate as const. Makes the code easier to read.
This commit is contained in:
Misa
2021-02-11 16:34:33 -08:00
committed by Ethan Lee
parent 62808ca97a
commit 825dbac228
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ bool next_split_s(
bool is_number(const char* str);
bool is_positive_num(const std::string& str, bool hex);
bool is_positive_num(const std::string& str, const bool hex);
bool endsWith(const std::string& str, const std::string& suffix);